New Image (gb.image)

Dim hImage As Image
hImage = New Image ( [ Width As Integer, Height As Integer, Color As Integer, Format As Integer ] )

  • Width

  • Height

  • Color

  • Format

Creates a new image.

If Color is specified, then the image is initially filled with it. Otherwise the initial image content is undefined. (see warning below)

Format can be one of the following values...

  • Standard.

  • Premultiplied.

Note.
If Color is not specified then the new image contents are "undefined" meaning it could be anything depending on how the underlying toolkit creates an image.

If you are not planning on drawing to the entire image area, only part of it, then there is no way to tell what the background will be so be sure to use Color to initially fill the image area.