Class EmfSetDiBitsToDevice

Class EmfSetDiBitsToDevice

Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Records
Assembly: Aspose.Imaging.dll (25.7.0)

The EMR_SETDIBITSTODEVICE record specifies a block transfer of pixels from specified scan lines ofa source bitmap to a destination rectangle.

public sealed class EmfSetDiBitsToDevice : EmfBitmapRecordType
    {
        public EmfSetDiBitsToDevice(int size)
        {
            Size = size;
        }
        public int Size { get; set; }
        public int X { get; set; }
        public int Y { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public int Stride { get; set; }
        public Scan0Order Order { get; set; }
        public byte[] Scan0Data { get; set; }
    }

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 sourcebitmap header specifies the image format.

Constructors

EmfSetDiBitsToDevice(EmfRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.Emf.Records.EmfSetDiBitsToDevice class.

public void 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 thedestination bounding rectangle in device units.

public Rectangle Bounds
    {
        get;
        set;
    }

Property Value

Rectangle

CScans

Gets or sets a 32-bit unsigned integer that specifies the number of scan lines.

public int CScans
   {
      get;
      set;
   }

Property Value

int

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

int

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

int

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

int

SourceBitmap

Gets or sets a buffer containing the source bitmap, which is not required to becontiguous with the fixed portion of the EMR_SETDIBITSTODEVICE record. Accordingly, fieldsin this buffer that are labeled “UndefinedSpace” are optional and MUST be ignored.

public WmfDeviceIndependentBitmap SourceBitmap
    {
        get;
        set;
    }

Property Value

WmfDeviceIndependentBitmap

UsageSrc

Gets or sets a 32-bit unsigned integer that specifies how to interpret values in thecolor 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

EmfDibColors

XDest

Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-leftcorner of the destination rectangle.

public int XDest
   {
      get;
      set;
   }

Property Value

int

XSrc

Gets or sets a 32-bit signed integer that specifies the x-coordinate in pixels of the lower-leftcorner of the source rectangle.

public int XSrc
   {
      get;
      set;
   }

Property Value

int

YDest

Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-leftcorner of the destination rectangle.

public int YDest
    {
        get;
        set;
    }

Property Value

int

YSrc

Gets or sets a 32-bit signed integer that specifies the y-coordinate in pixels of the lower-leftcorner of the source rectangle.

public int YSrc
   {
      get;
      set;
   }

Property Value

int

 English