Skip to content

ImageDrawOptions

Type

ImageDrawOptions

The ImageDrawOptions type contains colour blending options for use in Image's drawing functions.

See:

Properties

Property Type Description
blend integer The blending mode to use (see BLEND_ constants in the Graphics namespace)
alpha float The alpha value to draw with (0.0 - 1.0)
keepSourceAlpha boolean If true, the alpha value(s) of the source pixel(s) is respected when drawing, otherwise they will be ignored (ie. considered to be all fully opaque)

Constructors

ImageDrawOptions.new()

Creates a new ImageDrawOptions with the following default properties:

  • blend: Graphics.BLEND_NORMAL
  • alpha: 1.0
  • keepSourceAlpha: true