Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / GcBitmap Constructor / GcBitmap Constructor(Int32,Int32,Boolean,Single,Single,Boolean)
The width of the image, in pixels.
The height of the image, in pixels.
Indicates whether the alpha channel should be ignored.
The horizontal dpi of the image.
The vertical dpi of the image.
Indicates whether pixel data should be dynamically mapped to a temporary file rather than kept fully in memory.

In This Topic
    GcBitmap Constructor(Int32,Int32,Boolean,Single,Single,Boolean)
    In This Topic
    Initializes a new instance of the GcBitmap class and creates the image.

    The image content is not initialized and can contain any random data.

    If subsequent rendering is going to cover the whole surface of the bitmap, or if CreateGraphics will be called on the bitmap with a non-null background color, clearing it (which is a lengthy operation for large bitmaps) is not needed. If some areas of the bitmap are going to be left untouched, they must be cleared to avoid the possibility of random artifacts showing.

    Syntax
    'Declaration
     
    Public Function New( _
       ByVal pixelWidth As System.Integer, _
       ByVal pixelHeight As System.Integer, _
       ByVal opaque As System.Boolean, _
       Optional ByVal dpiX As System.Single, _
       Optional ByVal dpiY As System.Single, _
       Optional ByVal storeInTempFile As System.Boolean _
    )
    public GcBitmap( 
       System.int pixelWidth,
       System.int pixelHeight,
       System.bool opaque,
       System.float dpiX,
       System.float dpiY,
       System.bool storeInTempFile
    )

    Parameters

    pixelWidth
    The width of the image, in pixels.
    pixelHeight
    The height of the image, in pixels.
    opaque
    Indicates whether the alpha channel should be ignored.
    dpiX
    The horizontal dpi of the image.
    dpiY
    The vertical dpi of the image.
    storeInTempFile
    Indicates whether pixel data should be dynamically mapped to a temporary file rather than kept fully in memory.
    See Also