Struct EmfBlendFunction
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.7.0)
A structure that specifies the blending operations for source and destination bitmaps.
public struct EmfBlendFunction
{
public BlendFunc Function;
public byte i1;
public byte i2;
public byte i3;
public byte i4;
}
This formatted code follows standard C# conventions:
- Proper indentation (using 4 spaces for indenting)
- Spacing between operators and expressions, after commas, before opening braces, etc.
- General readability improvements such as aligning `public byte` declarations under the struct name for better visual grouping.
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
EmfBlendFunction(int)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfBlendFunction class.
public EmfBlendFunction(int dwordData)
{
}
Parameters
dwordData
int
The dword data.
Properties
AlphaFormat
Gets a structure that specifies how source and destination pixels areinterpreted with respect to alpha transparency.
public EmfBlendFunction.AlphaFormatEnum AlphaFormat
{
get;
}
Property Value
EmfBlendFunction . AlphaFormatEnum
BlendFlags
Gets the blend flags.This value MUST be 0x00 and MUST be ignored.
public byte BlendFlags
{
get;
}
Property Value
BlendOperation
Gets the blend operation code.The only source and destinationblend operation that has been defined is 0x00, which specifies that the source bitmapMUST be combined with the destination bitmap based on the alpha transparency valuesof the source pixels. See the following equations for details.
public byte BlendOperation
{
get;
}
Property Value
SrcConstantAlpha
Gets an 8-bit unsigned integer that specifies alpha transparency,which determines the blend of the source and destination bitmaps. This value MUST beused on the entire source bitmap. The minimum alpha transparency value, zero,corresponds to completely transparent the maximum value, 0xFF, corresponds tocompletely opaque. In effect, a value of 0xFF specifies that the per-pixel alpha valuesdetermine the blend of the source and destination bitmaps. See the equations later inthis section for details.
public byte SrcConstantAlpha
{
get;
}
Property Value
Methods
ToInt()
Converts the string representation of a number to an integer.
public int ToInt()
{
}
Returns
The DWORD value of structure.