gdkPixbufNew: gdkPixbufNew

Description Usage Arguments Value Author(s)

View source: R/gdkFuncs.R

Description

Creates a new GdkPixbuf structure and allocates a buffer for it. The buffer has an optimal rowstride. Note that the buffer is not cleared; you will have to fill it completely yourself.

Usage

1
gdkPixbufNew(colorspace, has.alpha, bits.per.sample, width, height)

Arguments

colorspace

Color space for image

has.alpha

Whether the image should have transparency information

bits.per.sample

Number of bits per color sample

width

Width of image in pixels, must be > 0

height

Height of image in pixels, must be > 0

Value

[GdkPixbuf] A newly-created GdkPixbuf with a reference count of 1, or NULL if not enough memory could be allocated for the image buffer.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to gdkPixbufNew in RGtk2...