Table of Contents

Class Bitmap

Namespace
HP.LFT.Common.Linux.Drawing
Assembly
HP.LFT.Common.Standard.dll

Bitmap class (non-static, inherits Image)

public class Bitmap : Image, IDisposable, ISerializable, ICloneable
Inheritance
Bitmap
Implements
Inherited Members

Constructors

Bitmap(int, int)

public Bitmap(int width, int height)

Parameters

width int
height int

Bitmap(int, int, PixelFormat)

public Bitmap(int width, int height, PixelFormat pixelFormat)

Parameters

width int
height int
pixelFormat PixelFormat

Fields

_skBitmap

protected readonly SKBitmap _skBitmap

Field Value

SKBitmap

Methods

Clone()

public override object Clone()

Returns

object

Clone(Rectangle, PixelFormat)

public Bitmap Clone(Rectangle rect, PixelFormat format)

Parameters

rect Rectangle
format PixelFormat

Returns

Bitmap

Decode(Stream, ImageFormat)

public static Bitmap Decode(Stream stream, ImageFormat imageFormat)

Parameters

stream Stream
imageFormat ImageFormat

Returns

Bitmap

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

FromBytes(byte[])

public static Bitmap FromBytes(byte[] bytes)

Parameters

bytes byte[]

Returns

Bitmap

FromFile(string)

public static Bitmap FromFile(string filename)

Parameters

filename string

Returns

Bitmap

FromStream(Stream)

public static Bitmap FromStream(Stream stream)

Parameters

stream Stream

Returns

Bitmap

GetPixel(int, int)

public Color GetPixel(int x, int y)

Parameters

x int
y int

Returns

Color

SetPixel(int, int, Color)

public void SetPixel(int x, int y, Color color)

Parameters

x int
y int
color Color