Table of Contents

Class BitmapRef

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public abstract class BitmapRef : IDisposable, IBitmap
Inheritance
BitmapRef
Implements
Derived
Inherited Members

Properties

Height

public abstract int Height { get; }

Property Value

int

Pixels

public abstract int[] Pixels { get; }

Property Value

int[]

Width

public abstract int Width { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public abstract void Dispose()

GetPixel(int, int)

public abstract SKColor GetPixel(int x, int y)

Parameters

x int
y int

Returns

SKColor

GetPixelRel(float, float)

public abstract SKColor GetPixelRel(float x, float y)

Parameters

x float
y float

Returns

SKColor

GetPixelsTransformed(int, int)

public abstract int[] GetPixelsTransformed(int rot = 0, int mulalpha = 255)

Parameters

rot int
mulalpha int

Returns

int[]

MulAlpha(int)

public abstract void MulAlpha(int alpha = 255)

Parameters

alpha int

Save(string)

public abstract void Save(string filename)

Parameters

filename string