Roblox Adds Seven New Image Blend Modes to EditableImage

Roblox developers can now access seven new options for Enum.ImageCombineType, enabling more complex artistic effects in EditableImage drawing methods.

THE SHORT ANSWER

The Roblox Geometry team updated EditableImage with seven new blend modes (Darken, Lighten, Difference, Screen, Overlay, Hard Light, Soft Light) and expanded the ImageAlphaType parameter to all drawing methods.

  • Seven new blend modes added to Enum.ImageCombineType
  • ImageAlphaType parameter now available in all drawing methods
  • Performance impact noted for Soft Light mode
  • Sample place file provided for testing

Roblox developers can now access seven new image blending modes for the EditableImage class. The update expands the Enum.ImageCombineType options, allowing for more complex artistic effects in experiences. This change applies to drawing methods like DrawImage and DrawRectangle.

The new modes include Darken, Lighten, Difference, Screen, Overlay, Hard Light, and Soft Light. These options mimic behaviors found in standard image editing software. The Darken mode selects the darker value for each channel between the source and destination. Lighten does the opposite, keeping the lighter value. The Difference mode subtracts the darker value from the lighter one for each channel. Screen inverts both source and destination values, multiplies them, and inverts the result again.

The update also changes how developers handle alpha channels. Previously, the ImageAlphaType parameter was limited to EditableImage:DrawImageProjected(). The new update makes this parameter available in all drawing methods. This allows creators to choose whether the blend operation applies to color channels, alpha channels, or both.

Performance is a factor with these new options. The Overlay and Hard Light modes take slightly more processing time. The Soft Light mode is significantly slower. Developers should limit the use of these complex modes to smaller images. Reusing the results of blend operations is also recommended to maintain frame rates.

Roblox provided a sample place file to test these modes. The file allows users to select two layers and an alpha type option to see how the blend modes interact.

KEEP READING

More from this desk