Enum Class PixbufAlphaMode

java.lang.Object
java.lang.Enum<PixbufAlphaMode>
org.gnome.gdkpixbuf.PixbufAlphaMode
All Implemented Interfaces:
Serializable, Comparable<PixbufAlphaMode>, Constable, Enumeration

@Generated("org.javagi.JavaGI") @Deprecated public enum PixbufAlphaMode extends Enum<PixbufAlphaMode> implements Enumeration
Deprecated.
There is no user of GdkPixbufAlphaMode in GdkPixbuf, and the Xlib utility functions have been split out to their own library, gdk-pixbuf-xlib

Control the alpha channel for drawables.

These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() in gdk-pixbuf-xlib to control how the alpha channel of an image should be handled.

This function can create a bilevel clipping mask (black and white) and use it while painting the image.

In the future, when the X Window System gets an alpha channel extension, it will be possible to do full alpha compositing onto arbitrary drawables. For now both cases fall back to a bilevel clipping mask.

  • Enum Constant Details

    • BILEVEL

      public static final PixbufAlphaMode BILEVEL
      Deprecated.
      A bilevel clipping mask (black and white) will be created and used to draw the image. Pixels below 0.5 opacity will be considered fully transparent, and all others will be considered fully opaque.
    • FULL

      public static final PixbufAlphaMode FULL
      Deprecated.
      For now falls back to GDK_PIXBUF_ALPHA_BILEVEL. In the future it will do full alpha compositing.
  • Method Details

    • values

      public static PixbufAlphaMode[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PixbufAlphaMode valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static PixbufAlphaMode of(int value)
      Deprecated.
      Create a new PixbufAlphaMode for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Deprecated.
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static PixbufAlphaMode of(MemorySegment address)
      Deprecated.
      Create a new PixbufAlphaMode for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the PixbufAlphaMode class.
      Returns:
      the GType