←Select platform

AlphaBlend Property

Summary
Enables or disables the AlphaBlend operation.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public bool AlphaBlend { get; set; } 
@property (nonatomic, assign) BOOL AlphaBlend 
public boolean getAlphaBlend(); 
public void setAlphaBlend( 
   boolean booleanValue 
); 
public: 
property bool AlphaBlend { 
   bool get(); 
   void set (    bool ); 
} 
AlphaBlend # get and set (RasterImage) 

Property Value

true if AlphaBlend should be used; false, otherwise.

Remarks

This property only applies to 32-bit images. This property is used mainly with WebP animations.

This property is set automatically when you load animated WebP files. Consider enabling this property when creating a WebP animation and would like to specify whether this frame should be combined with the background using an alpha blend operation. WebP animations use alpha blending to implement transparency or translucency. When a frame has transparent pixels, the alpha values for the transparent pixels are set to 0 and the AlphaBlend flag for the frame is turned on.

When you are creating an animation and you have transparent pixels for one of the frames, you would set the alpha values for those pixels to 0 and the AlphaBlend property to true.

This property is used internally while LEADTOOLS paints an animation using RasterImageAnimator.Process.

If you are not doing low level animation work, you may leave this property unchanged.

Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.