Companion

Properties

Link copied to clipboard
open val type: <Error class: unknown class><Pixbuf>

Functions

Link copied to clipboard
fun calculateRowstride(    colorspace: Colorspace,     hasAlpha: Boolean,     bitsPerSample: <Error class: unknown class>,     width: <Error class: unknown class>,     height: <Error class: unknown class>): <Error class: unknown class>

Calculates the rowstride that an image created with those values would have.

Link copied to clipboard
fun fromResource(resourcePath: String): <Error class: unknown class><Pixbuf>

Creates a new pixbuf by loading an image from an resource.

Link copied to clipboard
fun fromResourceAtScale(    resourcePath: String,     width: <Error class: unknown class>,     height: <Error class: unknown class>,     preserveAspectRatio: Boolean): <Error class: unknown class><Pixbuf>

Creates a new pixbuf by loading an image from an resource.

Link copied to clipboard
fun getFileInfoAsync(filename: String, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously parses an image file far enough to determine its format and size.

Link copied to clipboard
fun getFormats(): <Error class: unknown class>

Obtains the available information about the image formats supported by GdkPixbuf.

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of Pixbuf

Link copied to clipboard
fun initModules(path: String): <Error class: unknown class><Boolean>

Initalizes the gdk-pixbuf loader modules referenced by the loaders.cache file present inside that directory.

Link copied to clipboard
fun newFromStreamAsync(    stream: <Error class: unknown class>,     cancellable: <Error class: unknown class>? = null,     callback: <Error class: unknown class>?)

Creates a new pixbuf by asynchronously loading an image from an input stream.

Link copied to clipboard
fun newFromStreamAtScaleAsync(    stream: <Error class: unknown class>,     width: <Error class: unknown class>,     height: <Error class: unknown class>,     preserveAspectRatio: Boolean,     cancellable: <Error class: unknown class>? = null,     callback: <Error class: unknown class>?)

Creates a new pixbuf by asynchronously loading an image from an input stream.

Link copied to clipboard
fun saveToStreamFinish(asyncResult: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finishes an asynchronous pixbuf save operation started with gdk_pixbuf_save_to_stream_async().