![]() |
|
ImageExtensions Class | KGy SOFT Drawing Libraries Help |
Contains extension methods for the Image type.
Inheritance Hierarchy
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax
public static class ImageExtensions
<ExtensionAttribute> Public NotInheritable Class ImageExtensions
[ExtensionAttribute] public ref class ImageExtensions abstract sealed
[<AbstractClassAttribute>] [<SealedAttribute>] [<ExtensionAttribute>] type ImageExtensions = class end
The ImageExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | ConvertPixelFormat |
Converts the image to another one with the desired PixelFormat.
See the Remarks section for details. |
![]() ![]() | EqualsByContent |
Compares an image to another one by content and returns whether they are equal. Images of different
size or pixel format are considered as difference.
|
![]() ![]() | GetBitsPerPixel |
Gets the bits per pixel (bpp) value of the image.
|
![]() ![]() | SaveAsGif(Image, Stream, Boolean) |
Saves the specified image as a GIF image.
See the Remarks section for the differences compared to the Image.Save(Stream,ImageFormat) method. |
![]() ![]() | SaveAsGif(Image, Stream, Color) |
Saves the specified image as a GIF image.
See the Remarks section for the differences compared to the Image.Save(Stream,ImageFormat) method. |
![]() ![]() | SaveAsMultipageTiff | |
![]() ![]() | ToGrayscale |
Converts an image to a grayscale one.
|
![]() ![]() | ToIcon |
See Also