Class BitmapRef
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public abstract class BitmapRef : IDisposable, IBitmap
- Inheritance
-
BitmapRef
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Height
public abstract int Height { get; }
Property Value
Pixels
public abstract int[] Pixels { get; }
Property Value
- int[]
Width
public abstract int Width { get; }
Property Value
Methods
CropTo(int)
Crops to a bitmap of newsize x newsize, taken from the center of the old bitmap
public abstract BitmapRef CropTo(int newsize)
Parameters
newsizeint
Returns
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
Returns
GetPixelRel(float, float)
public abstract SKColor GetPixelRel(float x, float y)
Parameters
Returns
GetPixelsTransformed(int, int)
public abstract int[] GetPixelsTransformed(int rot = 0, int mulalpha = 255)
Parameters
Returns
- int[]
MulAlpha(int)
public abstract void MulAlpha(int alpha = 255)
Parameters
alphaint
Save(string)
public abstract void Save(string filename)
Parameters
filenamestring