Table of Contents

Class SkiaImageHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements IImageHandler interface provider for the SKBitmap.

public class SkiaImageHandler : PlessImageHandler, IBaseObject, IDisposableObject, IImageHandler, IDisposable, ILockImageBits
Inheritance
SkiaImageHandler
Implements

Constructors

SkiaImageHandler()

Initializes a new instance of the SkiaImageHandler class.

SkiaImageHandler(GenericImage, Graphics)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(GenericImage, int)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(Image)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(Image, SizeI)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(SizeI, int)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(ImageSet, SizeI)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(ImageSet, IControl)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(SKBitmap)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

SkiaImageHandler(int, int, Graphics)

Initializes a new instance of the SkiaImageHandler class using the specified parameters.

Properties

AlphaType

Gets type of the alpha component.

Bitmap

Gets internal SKBitmap.

BitsFormat

Gets ImageBitsFormatKind which identifies pixel format.

Depth

Gets the color depth of the image. Returned value is 32, 24, or other.

DipSize

Gets the size of bitmap in DPI-independent units.

HasAlpha

Gets or sets whether this image has an alpha channel.

HasMask

Gets whether this image has mask.

Height

Gets image height.

IsOk

Gets whether image is ok (is not disposed and has non-zero width and height).

PixelSize

Gets the size of the image in pixels.

ScaleFactor

Gets or sets the scale factor of this image.

ScaledHeight

Gets the height of the bitmap in logical pixels.

ScaledSize

Gets the size of the bitmap in logical pixels.

ScaledWidth

Gets the width of the bitmap in logical pixels.

Width

Gets image width.

Methods

Assign(GenericImage)

Assigns pixels of GenericImage to this image.

Assign(SKBitmap)

Assigns pixels of SKBitmap to this image.

CreateFromPicture(SKPicture?, int, int, Color?)

Creates SkiaImageHandler from SKPicture using the specified width and height.

CreateFromSvg(Stream, int, int, Color?)

Initializes a new instance of the SkiaImageHandler class from the specified Stream which contains svg data.

CreateFromSvg(string, int, int, Color?)

Initializes a new instance of the Image class from the specified string which contains svg data.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetStride()

Gets row stride.

GetSubBitmap(RectI)

Returns a sub image of the current one as long as the rect belongs entirely to the image.

LoadFromStream(Stream)

Loads image from stream.

LockBits()

Locks image pixels.

Rescale(SizeI)

Rescales this image to the requested size.

ResetAlpha()

Resets alpha channel.

SaveToStream(Stream, BitmapType, int)

Saves this image to the specified stream in the specified format defined in type.

SetImmutable()

Marks the image as immutable.

ToGenericImage()

Convert this image to GenericImage.

UnlockBits()

Unlocks image pixels.