Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / CreateImage Method / CreateImage(IntPtr,Int32,Int32,Boolean,Boolean,Single,Single) Method
The pixel data to be attached to a GcBitmap.
The width of the image, in pixels.
The height of the image, in pixels.
Indicates if the alpha channel should be ignored.
Indicates if the color channels are premultiplied by the alpha channel.
The horizontal dpi of the image.
The vertical dpi of the image.

In This Topic
    CreateImage(IntPtr,Int32,Int32,Boolean,Boolean,Single,Single) Method
    In This Topic
    Creates the image based on the existing pixel data to be read/modified in-place.
    Syntax
    'Declaration
     
    Public Overloads Sub CreateImage( _
       ByVal pixelData As System.IntPtr, _
       ByVal pixelWidth As System.Integer, _
       ByVal pixelHeight As System.Integer, _
       ByVal opaque As System.Boolean, _
       Optional ByVal premultiplied As System.Boolean, _
       Optional ByVal dpiX As System.Single, _
       Optional ByVal dpiY As System.Single _
    ) 
    public void CreateImage( 
       System.IntPtr pixelData,
       System.int pixelWidth,
       System.int pixelHeight,
       System.bool opaque,
       System.bool premultiplied,
       System.float dpiX,
       System.float dpiY
    )

    Parameters

    pixelData
    The pixel data to be attached to a GcBitmap.
    pixelWidth
    The width of the image, in pixels.
    pixelHeight
    The height of the image, in pixels.
    opaque
    Indicates if the alpha channel should be ignored.
    premultiplied
    Indicates if the color channels are premultiplied by the alpha channel.
    dpiX
    The horizontal dpi of the image.
    dpiY
    The vertical dpi of the image.
    See Also