ImageGdk.this

Warning gdk_image_new is deprecated and should not be used in newly-written code. Creates a new GdkImage.

  1. this(GdkImage* gdkImage)
  2. this(GdkImageType type, Visual visual, int width, int height)
    class ImageGdk
  3. this(Visual visual, void* data, int width, int height)

Parameters

type GdkImageType

the type of the GdkImage, one of GDK_IMAGE_NORMAL, GDK_IMAGE_SHARED and GDK_IMAGE_FASTEST. GDK_IMAGE_FASTEST is probably the best choice, since it will try creating a GDK_IMAGE_SHARED image first and if that fails it will then use GDK_IMAGE_NORMAL.

visual Visual

the GdkVisual to use for the image.

width int

the width of the image in pixels.

height int

the height of the image in pixels.

Throws

ConstructionException GTK+ fails to create the object.

Meta