Interface IImageHandler
Contains methods and properties which allow to work with image.
public interface IImageHandler : IDisposable, ILockImageBits
Properties
- 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.
- 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.
Methods
- Assign(GenericImage)
Assigns pixels of GenericImage to this image.
- Assign(SKBitmap)
Assigns pixels of SKBitmap to this image.
- 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.
- LoadFromStream(Stream, BitmapType)
Loads an image from an input stream.
- 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.