Table of Contents

Class PixbufLoader

Namespace
GdkPixbuf.Internal
Assembly
GdkPixbuf-2.0.dll
public class PixbufLoader
Inheritance
PixbufLoader
Inherited Members

Methods

Close(IntPtr, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_loader_close.

public static extern bool Close(IntPtr loader, out ErrorOwnedHandle error)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetAnimation(IntPtr)

Calls native method gdk_pixbuf_loader_get_animation.

public static extern IntPtr GetAnimation(IntPtr loader)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetFormat(IntPtr)

Calls native method gdk_pixbuf_loader_get_format. Version: 2.2

[Version("2.2")]
public static extern PixbufFormatUnownedHandle GetFormat(IntPtr loader)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

Returns

PixbufFormatUnownedHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function gdk_pixbuf_loader_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetPixbuf(IntPtr)

Calls native method gdk_pixbuf_loader_get_pixbuf.

public static extern IntPtr GetPixbuf(IntPtr loader)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

New()

Calls native constructor gdk_pixbuf_loader_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewWithMimeType(NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_loader_new_with_mime_type. Version: 2.4

[Version("2.4")]
public static extern IntPtr NewWithMimeType(NonNullableUtf8StringHandle mimeType, out ErrorOwnedHandle error)

Parameters

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewWithType(NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_loader_new_with_type.

public static extern IntPtr NewWithType(NonNullableUtf8StringHandle imageType, out ErrorOwnedHandle error)

Parameters

imageType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetSize(IntPtr, int, int)

Calls native method gdk_pixbuf_loader_set_size. Version: 2.2

[Version("2.2")]
public static extern void SetSize(IntPtr loader, int width, int height)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

Write(IntPtr, ref byte, nuint, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_loader_write.

public static extern bool Write(IntPtr loader, ref byte buf, nuint count, out ErrorOwnedHandle error)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

buf byte

Transfer ownership: None Nullable: False

count nuint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

WriteBytes(IntPtr, BytesHandle, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_loader_write_bytes. Version: 2.30

[Version("2.30")]
public static extern bool WriteBytes(IntPtr loader, BytesHandle buffer, out ErrorOwnedHandle error)

Parameters

loader IntPtr

Transfer ownership: None Nullable: False

buffer BytesHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False