Class EmfPlusBitmap

Class EmfPlusBitmap

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

The EmfPlusBitmap object specifies a bitmap that contains a graphics image.

public sealed class EmfPlusBitmap : EmfPlusBaseImageData
{
    private EmfPlusGdiplusMetafile gdiPlusMetafile;
    private EmfPlusRectangleF bitmapRectangle;
    public EmfPlusBitmap(EmfPlusGdiplusMetafile gdiPlusMetafile, EmfPlusRectangleF bitmapRectangle)
    {
        this.gdiPlusMetafile = gdiPlusMetafile;
        this.bitmapRectangle = bitmapRectangle;
    }
    public override void Draw(EmfPlusGraphics graphics)
    {
    }
}

Inheritance

object MetaObject EmfPlusObject EmfPlusStructureObjectType EmfPlusBaseImageData EmfPlusBitmap

Inherited Members

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

EmfPlusBitmap()

public EmfPlusBitmap()
   {
   }

Properties

BitmapData

Gets or sets bitmap dataBitmapData (variable): Variable-length data that defines the bitmap data object specified in the Type field. Thecontent and format of the data can be different for every bitmap type.

public EmfPlusBaseBitmapData BitmapData
   {
      get;
      set;
   }

Property Value

EmfPlusBaseBitmapData

Height

Gets or sets bitmap heightHeight (4 bytes): A 32-bit signed integer that specifies the height in pixels of the area occupied by the bitmap.If the image is compressed, according to the Type field, this value is undefined and MUST be ignored.

public int Height
   {
      get;
      set;
   }

Property Value

int

PixelFormat

Gets or sets pixel formatPixelFormat (4 bytes): A 32-bit unsigned integer that specifies the format of the pixels that make up the bitmapimage. The supported pixel formats are specified in the Aspose.Imaging.FileFormats.Emf.EmfPlus.Consts.EmfPlusPixelFormat enumeration (section2.1.1.25).If the image is compressed, according to the Type field, this value is undefined and MUST be ignored.

public EmfPlusPixelFormat PixelFormat
    {
        get;
        set;
    }

Property Value

EmfPlusPixelFormat

Stride

Gets or sets stride of the imageStride (4 bytes): A 32-bit signed integer that specifies the byte offset between the beginning of one scan-line andthe next. This value is the number of bytes per pixel, which is specified in the PixelFormat field, multiplied bythe width in pixels, which is specified in the Width field. The value of this field MUST be a multiple of four.If the image is compressed, according to the Type field, this value is undefined and MUST be ignored.

public int Stride
   {
      get;
      set;
   }

Property Value

int

Type

Gets or sets type of the imageType (4 bytes): A 32-bit unsigned integer that specifies the type of data in the BitmapData field. This value MUSTbe defined in the Aspose.Imaging.FileFormats.Emf.EmfPlus.Consts.EmfPlusBitmapDataType enumeration (section 2.1.1.2).

public EmfPlusBitmapDataType Type
   {
      get;
      set;
   }

Property Value

EmfPlusBitmapDataType

Width

Gets or sets image WidthWidth (4 bytes): A 32-bit signed integer that specifies the width in pixels of the area occupied by the bitmap.If the image is compressed, according to the Type field, this value is undefined and MUST be ignored.

public int Width
   {
      get;
      set;
   }

Property Value

int

 English