Table of Contents

Class Pixbuf

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

Methods

AddAlpha(IntPtr, bool, byte, byte, byte)

Calls native method gdk_pixbuf_add_alpha.

public static extern IntPtr AddAlpha(IntPtr pixbuf, bool substituteColor, byte r, byte g, byte b)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

substituteColor bool

Transfer ownership: None Nullable: False

r byte

Transfer ownership: None Nullable: False

g byte

Transfer ownership: None Nullable: False

b byte

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

ApplyEmbeddedOrientation(IntPtr)

Calls native method gdk_pixbuf_apply_embedded_orientation. Version: 2.12

[Version("2.12")]
public static extern IntPtr ApplyEmbeddedOrientation(IntPtr src)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

CalculateRowstride(Colorspace, bool, int, int, int)

Calls native function gdk_pixbuf_calculate_rowstride. Version: 2.36.8

[Version("2.36.8")]
public static extern int CalculateRowstride(Colorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height)

Parameters

colorspace Colorspace

Transfer ownership: None Nullable: False

hasAlpha bool

Transfer ownership: None Nullable: False

bitsPerSample int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

Composite(IntPtr, IntPtr, int, int, int, int, double, double, double, double, InterpType, int)

Calls native method gdk_pixbuf_composite.

public static extern void Composite(IntPtr src, IntPtr dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, InterpType interpType, int overallAlpha)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

dest IntPtr

Transfer ownership: None Nullable: False

destX int

Transfer ownership: None Nullable: False

destY int

Transfer ownership: None Nullable: False

destWidth int

Transfer ownership: None Nullable: False

destHeight int

Transfer ownership: None Nullable: False

offsetX double

Transfer ownership: None Nullable: False

offsetY double

Transfer ownership: None Nullable: False

scaleX double

Transfer ownership: None Nullable: False

scaleY double

Transfer ownership: None Nullable: False

interpType InterpType

Transfer ownership: None Nullable: False

overallAlpha int

Transfer ownership: None Nullable: False

CompositeColor(IntPtr, IntPtr, int, int, int, int, double, double, double, double, InterpType, int, int, int, int, uint, uint)

Calls native method gdk_pixbuf_composite_color.

public static extern void CompositeColor(IntPtr src, IntPtr dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, InterpType interpType, int overallAlpha, int checkX, int checkY, int checkSize, uint color1, uint color2)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

dest IntPtr

Transfer ownership: None Nullable: False

destX int

Transfer ownership: None Nullable: False

destY int

Transfer ownership: None Nullable: False

destWidth int

Transfer ownership: None Nullable: False

destHeight int

Transfer ownership: None Nullable: False

offsetX double

Transfer ownership: None Nullable: False

offsetY double

Transfer ownership: None Nullable: False

scaleX double

Transfer ownership: None Nullable: False

scaleY double

Transfer ownership: None Nullable: False

interpType InterpType

Transfer ownership: None Nullable: False

overallAlpha int

Transfer ownership: None Nullable: False

checkX int

Transfer ownership: None Nullable: False

checkY int

Transfer ownership: None Nullable: False

checkSize int

Transfer ownership: None Nullable: False

color1 uint

Transfer ownership: None Nullable: False

color2 uint

Transfer ownership: None Nullable: False

CompositeColorSimple(IntPtr, int, int, InterpType, int, int, uint, uint)

Calls native method gdk_pixbuf_composite_color_simple.

public static extern IntPtr CompositeColorSimple(IntPtr src, int destWidth, int destHeight, InterpType interpType, int overallAlpha, int checkSize, uint color1, uint color2)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

destWidth int

Transfer ownership: None Nullable: False

destHeight int

Transfer ownership: None Nullable: False

interpType InterpType

Transfer ownership: None Nullable: False

overallAlpha int

Transfer ownership: None Nullable: False

checkSize int

Transfer ownership: None Nullable: False

color1 uint

Transfer ownership: None Nullable: False

color2 uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

Copy(IntPtr)

Calls native method gdk_pixbuf_copy.

public static extern IntPtr Copy(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

CopyArea(IntPtr, int, int, int, int, IntPtr, int, int)

Calls native method gdk_pixbuf_copy_area.

public static extern void CopyArea(IntPtr srcPixbuf, int srcX, int srcY, int width, int height, IntPtr destPixbuf, int destX, int destY)

Parameters

srcPixbuf IntPtr

Transfer ownership: None Nullable: False

srcX int

Transfer ownership: None Nullable: False

srcY int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

destPixbuf IntPtr

Transfer ownership: None Nullable: False

destX int

Transfer ownership: None Nullable: False

destY int

Transfer ownership: None Nullable: False

CopyOptions(IntPtr, IntPtr)

Calls native method gdk_pixbuf_copy_options. Version: 2.36

[Version("2.36")]
public static extern bool CopyOptions(IntPtr srcPixbuf, IntPtr destPixbuf)

Parameters

srcPixbuf IntPtr

Transfer ownership: None Nullable: False

destPixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Fill(IntPtr, uint)

Calls native method gdk_pixbuf_fill.

public static extern void Fill(IntPtr pixbuf, uint pixel)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

pixel uint

Transfer ownership: None Nullable: False

Flip(IntPtr, bool)

Calls native method gdk_pixbuf_flip. Version: 2.6

[Version("2.6")]
public static extern IntPtr Flip(IntPtr src, bool horizontal)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

horizontal bool

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetBitsPerSample(IntPtr)

Calls native method gdk_pixbuf_get_bits_per_sample.

public static extern int GetBitsPerSample(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetByteLength(IntPtr)

Calls native method gdk_pixbuf_get_byte_length. Version: 2.26

[Version("2.26")]
public static extern nuint GetByteLength(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetColorspace(IntPtr)

Calls native method gdk_pixbuf_get_colorspace.

public static extern Colorspace GetColorspace(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

Colorspace

Transfer ownership: None Nullable: False

GetFileInfo(NonNullablePlatformStringHandle, out int, out int)

Calls native function gdk_pixbuf_get_file_info. Version: 2.4

[Version("2.4")]
public static extern PixbufFormatUnownedHandle GetFileInfo(NonNullablePlatformStringHandle filename, out int width, out int height)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

Returns

PixbufFormatUnownedHandle

Transfer ownership: None Nullable: True

GetFileInfoAsync(NonNullablePlatformStringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function gdk_pixbuf_get_file_info_async. Version: 2.32

[Version("2.32")]
public static extern void GetFileInfoAsync(NonNullablePlatformStringHandle filename, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

GetFileInfoFinish(IntPtr, out int, out int, out ErrorOwnedHandle)

Calls native function gdk_pixbuf_get_file_info_finish. Version: 2.32

[Version("2.32")]
public static extern PixbufFormatUnownedHandle GetFileInfoFinish(IntPtr asyncResult, out int width, out int height, out ErrorOwnedHandle error)

Parameters

asyncResult IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

PixbufFormatUnownedHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function gdk_pixbuf_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHasAlpha(IntPtr)

Calls native method gdk_pixbuf_get_has_alpha.

public static extern bool GetHasAlpha(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetHeight(IntPtr)

Calls native method gdk_pixbuf_get_height.

public static extern int GetHeight(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetNChannels(IntPtr)

Calls native method gdk_pixbuf_get_n_channels.

public static extern int GetNChannels(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetOption(IntPtr, NonNullableUtf8StringHandle)

Calls native method gdk_pixbuf_get_option.

public static extern NullableUtf8StringUnownedHandle GetOption(IntPtr pixbuf, NonNullableUtf8StringHandle key)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetOptions(IntPtr)

Calls native method gdk_pixbuf_get_options. Version: 2.32

[Version("2.32")]
public static extern HashTableUnownedHandle GetOptions(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

HashTableUnownedHandle

Transfer ownership: Container Nullable: False

GetPixels(IntPtr)

Calls native method gdk_pixbuf_get_pixels.

public static extern byte[] GetPixels(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

byte[]

Transfer ownership: None Nullable: False

GetPixels(IntPtr, out uint)

Calls native method gdk_pixbuf_get_pixels_with_length. Version: 2.26

[Version("2.26")]
public static extern byte[] GetPixels(IntPtr pixbuf, out uint length)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

length uint

Transfer ownership: Full Nullable: False

Returns

byte[]

Transfer ownership: None Nullable: False

GetRowstride(IntPtr)

Calls native method gdk_pixbuf_get_rowstride.

public static extern int GetRowstride(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetWidth(IntPtr)

Calls native method gdk_pixbuf_get_width.

public static extern int GetWidth(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

InitModules(NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native function gdk_pixbuf_init_modules. Version: 2.40

[Version("2.40")]
public static extern bool InitModules(NonNullableUtf8StringHandle path, out ErrorOwnedHandle error)

Parameters

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

New(Colorspace, bool, int, int, int)

Calls native constructor gdk_pixbuf_new.

public static extern IntPtr New(Colorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height)

Parameters

colorspace Colorspace

Transfer ownership: None Nullable: False

hasAlpha bool

Transfer ownership: None Nullable: False

bitsPerSample int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromBytes(BytesHandle, Colorspace, bool, int, int, int, int)

Calls native constructor gdk_pixbuf_new_from_bytes. Version: 2.32

[Version("2.32")]
public static extern IntPtr NewFromBytes(BytesHandle data, Colorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height, int rowstride)

Parameters

data BytesHandle

Transfer ownership: None Nullable: False

colorspace Colorspace

Transfer ownership: None Nullable: False

hasAlpha bool

Transfer ownership: None Nullable: False

bitsPerSample int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

rowstride int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromData(ref byte, Colorspace, bool, int, int, int, int, PixbufDestroyNotify, IntPtr)

Calls native constructor gdk_pixbuf_new_from_data.

public static extern IntPtr NewFromData(ref byte data, Colorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height, int rowstride, PixbufDestroyNotify destroyFn, IntPtr destroyFnData)

Parameters

data byte

Transfer ownership: None Nullable: False

colorspace Colorspace

Transfer ownership: None Nullable: False

hasAlpha bool

Transfer ownership: None Nullable: False

bitsPerSample int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

rowstride int

Transfer ownership: None Nullable: False

destroyFn PixbufDestroyNotify

Transfer ownership: None Nullable: True

destroyFnData IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_file.

public static extern IntPtr NewFromFile(NonNullablePlatformStringHandle filename, out ErrorOwnedHandle error)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromFileAtScale(NonNullablePlatformStringHandle, int, int, bool, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_file_at_scale. Version: 2.6

[Version("2.6")]
public static extern IntPtr NewFromFileAtScale(NonNullablePlatformStringHandle filename, int width, int height, bool preserveAspectRatio, out ErrorOwnedHandle error)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

preserveAspectRatio bool

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromFileAtSize(NonNullablePlatformStringHandle, int, int, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_file_at_size. Version: 2.4

[Version("2.4")]
public static extern IntPtr NewFromFileAtSize(NonNullablePlatformStringHandle filename, int width, int height, out ErrorOwnedHandle error)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromInline(int, ref byte, bool, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_inline.

public static extern IntPtr NewFromInline(int dataLength, ref byte data, bool copyPixels, out ErrorOwnedHandle error)

Parameters

dataLength int

Transfer ownership: None Nullable: False

data byte

Transfer ownership: None Nullable: False

copyPixels bool

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromResource(NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_resource. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewFromResource(NonNullableUtf8StringHandle resourcePath, out ErrorOwnedHandle error)

Parameters

resourcePath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromResourceAtScale(NonNullableUtf8StringHandle, int, int, bool, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_resource_at_scale. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewFromResourceAtScale(NonNullableUtf8StringHandle resourcePath, int width, int height, bool preserveAspectRatio, out ErrorOwnedHandle error)

Parameters

resourcePath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

preserveAspectRatio bool

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromStream(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_stream. Version: 2.14

[Version("2.14")]
public static extern IntPtr NewFromStream(IntPtr stream, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromStreamAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function gdk_pixbuf_new_from_stream_async. Version: 2.24

[Version("2.24")]
public static extern void NewFromStreamAsync(IntPtr stream, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewFromStreamAtScale(IntPtr, int, int, bool, IntPtr, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_stream_at_scale. Version: 2.14

[Version("2.14")]
public static extern IntPtr NewFromStreamAtScale(IntPtr stream, int width, int height, bool preserveAspectRatio, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

preserveAspectRatio bool

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromStreamAtScaleAsync(IntPtr, int, int, bool, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function gdk_pixbuf_new_from_stream_at_scale_async. Version: 2.24

[Version("2.24")]
public static extern void NewFromStreamAtScaleAsync(IntPtr stream, int width, int height, bool preserveAspectRatio, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

preserveAspectRatio bool

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewFromStreamFinish(IntPtr, out ErrorOwnedHandle)

Calls native constructor gdk_pixbuf_new_from_stream_finish. Version: 2.24

[Version("2.24")]
public static extern IntPtr NewFromStreamFinish(IntPtr asyncResult, out ErrorOwnedHandle error)

Parameters

asyncResult IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

NewFromXpmData(Utf8StringArrayNullTerminatedHandle)

Calls native constructor gdk_pixbuf_new_from_xpm_data.

public static extern IntPtr NewFromXpmData(Utf8StringArrayNullTerminatedHandle data)

Parameters

data Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewSubpixbuf(IntPtr, int, int, int, int)

Calls native method gdk_pixbuf_new_subpixbuf.

public static extern IntPtr NewSubpixbuf(IntPtr srcPixbuf, int srcX, int srcY, int width, int height)

Parameters

srcPixbuf IntPtr

Transfer ownership: None Nullable: False

srcX int

Transfer ownership: None Nullable: False

srcY int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

ReadPixelBytes(IntPtr)

Calls native method gdk_pixbuf_read_pixel_bytes. Version: 2.32

[Version("2.32")]
public static extern BytesOwnedHandle ReadPixelBytes(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

ReadPixels(IntPtr)

Calls native method gdk_pixbuf_read_pixels. Version: 2.32

[Version("2.32")]
public static extern IntPtr ReadPixels(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

Ref(IntPtr)

Calls native method gdk_pixbuf_ref.

public static extern IntPtr Ref(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

RemoveOption(IntPtr, NonNullableUtf8StringHandle)

Calls native method gdk_pixbuf_remove_option. Version: 2.36

[Version("2.36")]
public static extern bool RemoveOption(IntPtr pixbuf, NonNullableUtf8StringHandle key)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RotateSimple(IntPtr, PixbufRotation)

Calls native method gdk_pixbuf_rotate_simple. Version: 2.6

[Version("2.6")]
public static extern IntPtr RotateSimple(IntPtr src, PixbufRotation angle)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

angle PixbufRotation

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

SaturateAndPixelate(IntPtr, IntPtr, float, bool)

Calls native method gdk_pixbuf_saturate_and_pixelate.

public static extern void SaturateAndPixelate(IntPtr src, IntPtr dest, float saturation, bool pixelate)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

dest IntPtr

Transfer ownership: None Nullable: False

saturation float

Transfer ownership: None Nullable: False

pixelate bool

Transfer ownership: None Nullable: False

SaveToBufferv(IntPtr, out byte[], out nuint, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_save_to_bufferv. Version: 2.4

[Version("2.4")]
public static extern bool SaveToBufferv(IntPtr pixbuf, out byte[] buffer, out nuint bufferSize, NonNullableUtf8StringHandle type, Utf8StringArrayNullTerminatedHandle optionKeys, Utf8StringArrayNullTerminatedHandle optionValues, out ErrorOwnedHandle error)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

buffer byte[]

Transfer ownership: Full Nullable: False

bufferSize nuint

Transfer ownership: Full Nullable: False

type NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

optionKeys Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

optionValues Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SaveToStreamFinish(IntPtr, out ErrorOwnedHandle)

Calls native function gdk_pixbuf_save_to_stream_finish. Version: 2.24

[Version("2.24")]
public static extern bool SaveToStreamFinish(IntPtr asyncResult, out ErrorOwnedHandle error)

Parameters

asyncResult IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SaveToStreamv(IntPtr, IntPtr, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_save_to_streamv. Version: 2.36

[Version("2.36")]
public static extern bool SaveToStreamv(IntPtr pixbuf, IntPtr stream, NonNullableUtf8StringHandle type, Utf8StringArrayNullTerminatedHandle optionKeys, Utf8StringArrayNullTerminatedHandle optionValues, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

stream IntPtr

Transfer ownership: None Nullable: False

type NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

optionKeys Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

optionValues Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SaveToStreamvAsync(IntPtr, IntPtr, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_pixbuf_save_to_streamv_async. Version: 2.36

[Version("2.36")]
public static extern void SaveToStreamvAsync(IntPtr pixbuf, IntPtr stream, NonNullableUtf8StringHandle type, Utf8StringArrayNullTerminatedHandle optionKeys, Utf8StringArrayNullTerminatedHandle optionValues, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

stream IntPtr

Transfer ownership: None Nullable: False

type NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

optionKeys Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

optionValues Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

Savev(IntPtr, NonNullablePlatformStringHandle, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle, out ErrorOwnedHandle)

Calls native method gdk_pixbuf_savev.

public static extern bool Savev(IntPtr pixbuf, NonNullablePlatformStringHandle filename, NonNullableUtf8StringHandle type, Utf8StringArrayNullTerminatedHandle optionKeys, Utf8StringArrayNullTerminatedHandle optionValues, out ErrorOwnedHandle error)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

type NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

optionKeys Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

optionValues Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Scale(IntPtr, IntPtr, int, int, int, int, double, double, double, double, InterpType)

Calls native method gdk_pixbuf_scale.

public static extern void Scale(IntPtr src, IntPtr dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, InterpType interpType)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

dest IntPtr

Transfer ownership: None Nullable: False

destX int

Transfer ownership: None Nullable: False

destY int

Transfer ownership: None Nullable: False

destWidth int

Transfer ownership: None Nullable: False

destHeight int

Transfer ownership: None Nullable: False

offsetX double

Transfer ownership: None Nullable: False

offsetY double

Transfer ownership: None Nullable: False

scaleX double

Transfer ownership: None Nullable: False

scaleY double

Transfer ownership: None Nullable: False

interpType InterpType

Transfer ownership: None Nullable: False

ScaleSimple(IntPtr, int, int, InterpType)

Calls native method gdk_pixbuf_scale_simple.

public static extern IntPtr ScaleSimple(IntPtr src, int destWidth, int destHeight, InterpType interpType)

Parameters

src IntPtr

Transfer ownership: None Nullable: False

destWidth int

Transfer ownership: None Nullable: False

destHeight int

Transfer ownership: None Nullable: False

interpType InterpType

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

SetOption(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method gdk_pixbuf_set_option. Version: 2.2

[Version("2.2")]
public static extern bool SetOption(IntPtr pixbuf, NonNullableUtf8StringHandle key, NonNullableUtf8StringHandle value)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False

key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Unref(IntPtr)

Calls native method gdk_pixbuf_unref.

public static extern void Unref(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: False