Class PromptImageAlphaChannelConverters


  • public final class PromptImageAlphaChannelConverters
    extends Object
    Factory for common alpha channel converters.
    Since:
    8.5.0
    • 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.