C# Class SkiaSharp.SKBitmap

Inheritance: SKObject
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CanCopyTo ( SKColorType colorType ) : bool
Copy ( ) : SKBitmap
Copy ( SKColorType colorType ) : SKBitmap
CopyPixelsTo ( IntPtr dst, int dstSize, int dstRowBytes, bool preserveDstPad = false ) : bool
CopyTo ( SKBitmap destination ) : bool
CopyTo ( SKBitmap destination, SKColorType colorType ) : bool
Decode ( SKCodec codec ) : SKBitmap
Decode ( SKCodec codec, SKImageInfo bitmapInfo ) : SKBitmap
Decode ( SKData data ) : SKBitmap
Decode ( SKData data, SKImageInfo bitmapInfo ) : SKBitmap
Decode ( SKStream stream ) : SKBitmap
Decode ( SKStream stream, SKImageInfo bitmapInfo ) : SKBitmap
Decode ( byte buffer ) : SKBitmap
Decode ( byte buffer, SKImageInfo bitmapInfo ) : SKBitmap
Decode ( string filename ) : SKBitmap
Decode ( string filename, SKImageInfo bitmapInfo ) : SKBitmap
DecodeBounds ( SKData data ) : SKImageInfo
DecodeBounds ( SKStream stream ) : SKImageInfo
DecodeBounds ( byte buffer ) : SKImageInfo
DecodeBounds ( string filename ) : SKImageInfo
Erase ( SKColor color ) : void
Erase ( SKColor color, SKRectI rect ) : void
GetIndex8Color ( int x, int y ) : SKColor
GetPixel ( int x, int y ) : SKColor
GetPixels ( ) : IntPtr
GetPixels ( IntPtr &length ) : IntPtr
InstallPixels ( SKImageInfo info, IntPtr pixels ) : bool
InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes ) : bool
InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes, SKColorTable ctable ) : bool
InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes, SKColorTable ctable, SKBitmapReleaseDelegate releaseProc, object context ) : bool
LockPixels ( ) : void
Reset ( ) : void
SKBitmap ( SKImageInfo info ) : System
SKBitmap ( SKImageInfo info, SKColorTable ctable ) : System
SKBitmap ( SKImageInfo info, int rowBytes ) : System
SKBitmap ( int width, int height, SKColorType colorType, SKAlphaType alphaType ) : System
SKBitmap ( int width, int height, bool isOpaque = false ) : System
SetColorTable ( SKColorTable ct ) : void
SetImmutable ( ) : void
SetPixel ( int x, int y, SKColor color ) : void
SetPixels ( IntPtr pixels ) : void
SetPixels ( IntPtr pixels, SKColorTable ct ) : void
UnlockPixels ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SKBitmap ( ) : System
SKBitmap ( IntPtr handle, bool owns ) : System
SKBitmapReleaseInternal ( IntPtr address, IntPtr context ) : void

Method Details

CanCopyTo() public method

public CanCopyTo ( SKColorType colorType ) : bool
colorType SKColorType
return bool

Copy() public method

public Copy ( ) : SKBitmap
return SKBitmap

Copy() public method

public Copy ( SKColorType colorType ) : SKBitmap
colorType SKColorType
return SKBitmap

CopyPixelsTo() public method

public CopyPixelsTo ( IntPtr dst, int dstSize, int dstRowBytes, bool preserveDstPad = false ) : bool
dst System.IntPtr
dstSize int
dstRowBytes int
preserveDstPad bool
return bool

CopyTo() public method

public CopyTo ( SKBitmap destination ) : bool
destination SKBitmap
return bool

CopyTo() public method

public CopyTo ( SKBitmap destination, SKColorType colorType ) : bool
destination SKBitmap
colorType SKColorType
return bool

Decode() public static method

public static Decode ( SKCodec codec ) : SKBitmap
codec SKCodec
return SKBitmap

Decode() public static method

public static Decode ( SKCodec codec, SKImageInfo bitmapInfo ) : SKBitmap
codec SKCodec
bitmapInfo SKImageInfo
return SKBitmap

Decode() public static method

public static Decode ( SKData data ) : SKBitmap
data SKData
return SKBitmap

Decode() public static method

public static Decode ( SKData data, SKImageInfo bitmapInfo ) : SKBitmap
data SKData
bitmapInfo SKImageInfo
return SKBitmap

Decode() public static method

public static Decode ( SKStream stream ) : SKBitmap
stream SKStream
return SKBitmap

Decode() public static method

public static Decode ( SKStream stream, SKImageInfo bitmapInfo ) : SKBitmap
stream SKStream
bitmapInfo SKImageInfo
return SKBitmap

Decode() public static method

public static Decode ( byte buffer ) : SKBitmap
buffer byte
return SKBitmap

Decode() public static method

public static Decode ( byte buffer, SKImageInfo bitmapInfo ) : SKBitmap
buffer byte
bitmapInfo SKImageInfo
return SKBitmap

Decode() public static method

public static Decode ( string filename ) : SKBitmap
filename string
return SKBitmap

Decode() public static method

public static Decode ( string filename, SKImageInfo bitmapInfo ) : SKBitmap
filename string
bitmapInfo SKImageInfo
return SKBitmap

DecodeBounds() public static method

public static DecodeBounds ( SKData data ) : SKImageInfo
data SKData
return SKImageInfo

DecodeBounds() public static method

public static DecodeBounds ( SKStream stream ) : SKImageInfo
stream SKStream
return SKImageInfo

DecodeBounds() public static method

public static DecodeBounds ( byte buffer ) : SKImageInfo
buffer byte
return SKImageInfo

DecodeBounds() public static method

public static DecodeBounds ( string filename ) : SKImageInfo
filename string
return SKImageInfo

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Erase() public method

public Erase ( SKColor color ) : void
color SKColor
return void

Erase() public method

public Erase ( SKColor color, SKRectI rect ) : void
color SKColor
rect SKRectI
return void

GetIndex8Color() public method

public GetIndex8Color ( int x, int y ) : SKColor
x int
y int
return SKColor

GetPixel() public method

public GetPixel ( int x, int y ) : SKColor
x int
y int
return SKColor

GetPixels() public method

public GetPixels ( ) : IntPtr
return System.IntPtr

GetPixels() public method

public GetPixels ( IntPtr &length ) : IntPtr
length System.IntPtr
return System.IntPtr

InstallPixels() public method

public InstallPixels ( SKImageInfo info, IntPtr pixels ) : bool
info SKImageInfo
pixels System.IntPtr
return bool

InstallPixels() public method

public InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes ) : bool
info SKImageInfo
pixels System.IntPtr
rowBytes int
return bool

InstallPixels() public method

public InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes, SKColorTable ctable ) : bool
info SKImageInfo
pixels System.IntPtr
rowBytes int
ctable SKColorTable
return bool

InstallPixels() public method

public InstallPixels ( SKImageInfo info, IntPtr pixels, int rowBytes, SKColorTable ctable, SKBitmapReleaseDelegate releaseProc, object context ) : bool
info SKImageInfo
pixels System.IntPtr
rowBytes int
ctable SKColorTable
releaseProc SKBitmapReleaseDelegate
context object
return bool

LockPixels() public method

public LockPixels ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SKBitmap() public method

public SKBitmap ( SKImageInfo info ) : System
info SKImageInfo
return System

SKBitmap() public method

public SKBitmap ( SKImageInfo info, SKColorTable ctable ) : System
info SKImageInfo
ctable SKColorTable
return System

SKBitmap() public method

public SKBitmap ( SKImageInfo info, int rowBytes ) : System
info SKImageInfo
rowBytes int
return System

SKBitmap() public method

public SKBitmap ( int width, int height, SKColorType colorType, SKAlphaType alphaType ) : System
width int
height int
colorType SKColorType
alphaType SKAlphaType
return System

SKBitmap() public method

public SKBitmap ( int width, int height, bool isOpaque = false ) : System
width int
height int
isOpaque bool
return System

SetColorTable() public method

public SetColorTable ( SKColorTable ct ) : void
ct SKColorTable
return void

SetImmutable() public method

public SetImmutable ( ) : void
return void

SetPixel() public method

public SetPixel ( int x, int y, SKColor color ) : void
x int
y int
color SKColor
return void

SetPixels() public method

public SetPixels ( IntPtr pixels ) : void
pixels System.IntPtr
return void

SetPixels() public method

public SetPixels ( IntPtr pixels, SKColorTable ct ) : void
pixels System.IntPtr
ct SKColorTable
return void

UnlockPixels() public method

public UnlockPixels ( ) : void
return void