Class EmfSetDiBitsToDevice
Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.2.0)
The EMR_SETDIBITSTODEVICE record specifies a block transfer of pixels from specified scan lines of a source bitmap to a destination rectangle.
public sealed class EmfSetDiBitsToDevice : EmfBitmapRecordType
Inheritance
object ← MetaObject ← EmfRecord ← EmfBitmapRecordType ← EmfSetDiBitsToDevice
Inherited Members
EmfRecord.Type, EmfRecord.Size, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
This record supports source images in JPEG and PNG format. The Compression field in the source bitmap header specifies the image format.
Constructors
EmfSetDiBitsToDevice(EmfRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfSetDiBitsToDevice class.
public EmfSetDiBitsToDevice(EmfRecord source)
Parameters
source
EmfRecord
The source.
Properties
Bounds
Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
public Rectangle Bounds { get; set; }
Property Value
CScans
Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.
public int CScans { get; set; }
Property Value
CxSrc
Gets or sets a 32-bit signed integer that specifies the width in pixels of the source rectangle.
public int CxSrc { get; set; }
Property Value
CySrc
Gets or sets a 32-bit signed integer that specifies the height in pixels of the source rectangle
public int CySrc { get; set; }
Property Value
IStartScan
Gets or sets a 32-bit unsigned integer that specifies the first scan line in the array.
public int IStartScan { get; set; }
Property Value
SourceBitmap
Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_SETDIBITSTODEVICE record. Accordingly, fields in this buffer that are labeled “UndefinedSpace” are optional and MUST be ignored.
public WmfDeviceIndependentBitmap SourceBitmap { get; set; }
Property Value
UsageSrc
Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. This value MUST be in the DIBColors enumeration (section 2.1.9).
public EmfDibColors UsageSrc { get; set; }
Property Value
XDest
Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
public int XDest { get; set; }
Property Value
XSrc
Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-left corner of the source rectangle.
public int XSrc { get; set; }
Property Value
YDest
Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
public int YDest { get; set; }
Property Value
YSrc
Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-left corner of the source rectangle.
public int YSrc { get; set; }