Class PromptImageAlphaChannelConverters
- java.lang.Object
-
- de.xima.fc.prompt.service.support.PromptImageAlphaChannelConverters
-
public final class PromptImageAlphaChannelConverters extends Object
Factory for common alpha channel converters.- Since:
- 8.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPromptImageAlphaChannelConverteraddAlphaChannel()Gets an alpha channel converter that adds an alpha channel, if it does not exist, with full opacity.static IPromptImageAlphaChannelConverterflipAlphaChannel()Gets an alpha channel converter that adds an alpha channel if it does not exist; or removes it if it exists.static IPromptImageAlphaChannelConverterpreserveAlphaChannel()Gets an alpha channel converter that preserves the state of the alpha channel.static IPromptImageAlphaChannelConverterremoveAlphaChannel()Gets an alpha channel converter that removes the alpha channel, if it exists.
-
-
-
Method Detail
-
addAlphaChannel
public static IPromptImageAlphaChannelConverter addAlphaChannel()
Gets an alpha channel converter that adds an alpha channel, if it does not exist, with full opacity.- Returns:
- The converter.
-
flipAlphaChannel
public static IPromptImageAlphaChannelConverter 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
public static IPromptImageAlphaChannelConverter 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
public static IPromptImageAlphaChannelConverter removeAlphaChannel()
Gets an alpha channel converter that removes the alpha channel, if it exists.- Returns:
- The converter.
-
-