Interface IPromptImageAlphaChannelConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Converter that computes a new alpha channel operation based on whether the image has an alpha channel or not.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancomputeNewAlphaChannel(boolean hasAlphaChannel) Computes whether the image should have an alpha channel or not, based on whether the image has an alpha channel or not.
-
Method Details
-
computeNewAlphaChannel
boolean computeNewAlphaChannel(boolean hasAlphaChannel) Computes whether the image should have an alpha channel or not, based on whether the image has an alpha channel or not.- Parameters:
hasAlphaChannel- Whether the image has an alpha channel.- Returns:
- Whether the converted image should have an alpha channel.
-