Class PromptImageAlphaChannelConverters
java.lang.Object
de.xima.fc.prompt.service.support.PromptImageAlphaChannelConverters
Factory for common alpha channel converters.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionGets an alpha channel converter that adds an alpha channel, if it does not exist, with full opacity.Gets an alpha channel converter that adds an alpha channel if it does not exist; or removes it if it exists.Gets an alpha channel converter that preserves the state of the alpha channel.Gets an alpha channel converter that removes the alpha channel, if it exists.
-
Method Details
-
addAlphaChannel
Gets an alpha channel converter that adds an alpha channel, if it does not exist, with full opacity.- Returns:
- The converter.
-
flipAlphaChannel
Gets an alpha channel converter that adds an alpha channel if it does not exist; or removes it if it exists.- Returns:
- The converter.
-
preserveAlphaChannel
Gets an alpha channel converter that preserves the state of the alpha channel. Keeps the alpha channel if it exists; does not add an alpha channel if it does not exist.- Returns:
- The converter.
-
removeAlphaChannel
Gets an alpha channel converter that removes the alpha channel, if it exists.- Returns:
- The converter.
-