[]
Represents an uncompressed in-memory bitmap for the purpose of its conversion and transformation.
public class C1Bitmap : IDisposable
| Name | Description |
|---|---|
| C1Bitmap() | Initializes a new instance of the C1Bitmap class. |
| C1Bitmap(ImagingFactory) | Initializes a new instance of the C1Bitmap class. |
| Name | Description |
|---|---|
| ContainerFormat | Gets the container format for images loaded from a stream. |
| DpiX | Gets the x-axis dpi resolution. |
| DpiY | Gets the y-axis dpi resolution. |
| ExtendedMetadata | Gets or sets whether the Global and Frame metadata dictionaries should be loaded. |
| FrameMetadata | Gets the frame level metadata for JPG, PNG, JPEG-XR, GIF, TIFF images. |
| GlobalMetadata | Gets the global level metadata for GIF images. |
| HasImage | Gets a value indicating whether the internal image is loaded or created. |
| HasMetadata | Gets a value indicating whether the image metadata is loaded. |
| ImagingFactory | Gets the imaging factory that is used in this bitmap. |
| IsDisposed | Gets a value indicating whether the instance of the C1Bitmap class has been disposed of. |
| NativeBitmap | Gets the internal image that is an IWICBitmap. |
| PixelFormat | Gets the pixel format of the image. |
| PixelHeight | Gets the pixel height of the image. |
| PixelWidth | Gets the pixel width of the image. |
| Name | Description |
|---|---|
| BitsPerPixel(PixelFormat) | Returns the number of bits-per-pixel (bpp) for the given value of the PixelFormat enumeration. |
| CanConvertTo(PixelFormat) | Determines if the current pixel format can be converted to the destination pixel format. |
| CreateImage(int, int, PixelFormat) | Creates the internal image of the given size with uninitialized content. |
| CreatePaletteFromBitmap(int, bool) | Creates a palette using a computed optimized values based on the bitmap. |
| CreatePredefinedPalette(PaletteType, bool) | Creates one of the pre-defined palettes specified by PaletteType and optionally adds a transparent color. |
| DiscardImage() | Releases the internal image and clears all metadata. |
| Dispose() | Clean up any resources being used. |
| Dispose(bool) | Performs cleanup operations on managed and unmanaged resources. |
| ExportFragment(IntPtr, ImageRect) | Copies a fragment of the image to a unmanaged block of memory. |
| ExportFragment(WriteableBitmap, ImageRect) | Copies a fragment of the image to the given WriteableBitmap. |
| ~C1Bitmap() | Performs cleanup operations on unmanaged resources. |
| FromWPFPixelFormat(PixelFormat) | Converts a System.Windows.Media.PixelFormat to the PixelFormat enumeration value. |
| GetImageStride() | Returns the image stride (bytes per row). |
| GetPalette() | Retrieves the color table for indexed pixel formats, or null for other formats. |
| Import(Bitmap1) | Loads the image from a D2D.Bitmap1 (created with D2D.BitmapOptions.CpuRead). |
| Import(Bitmap1, DeviceContext, RectL) | Loads the image from a D2D.Bitmap1. |
| Import(C1Bitmap) | Loads the image from another instance of C1Bitmap. |
| Import(byte[], int, int, PixelFormat) | Loads the image from a byte array containing the pixels buffer. |
| Import(byte[], int, int, int, PixelFormat) | Loads the image from a byte array containing the pixels buffer with specified stride (bytes per row of pixels). |
| Import(IntPtr, int, int, PixelFormat) | Loads the image from a unmanaged block of memory pointed by IntPtr. |
| Import(IntPtr, int, int, int, PixelFormat) | Loads the image from a unmanaged block of memory pointed by IntPtr and having the specified stride (bytes per row of pixels). |
| Import(WriteableBitmap) | Loads the image from a WriteableBitmap. |
| ImportAsFragment(Bitmap1, DeviceContext, RectL, int, int) | Loads a fragment of the D2D.Bitmap1 to the given destination within the image. |
| ImportAsFragment(C1Bitmap, int, int) | Loads another C1Bitmap to the given destination within the image. |
| ImportAsFragment(byte[], ImageRect) | Loads the pixel buffer from a byte array to the given destination within the image. |
| ImportAsFragment(IntPtr, ImageRect) | Copies the unmanaged block of memory to the given destination within the image. |
| ImportAsFragment(WriteableBitmap, int, int) | Loads a WriteableBitmap to the given destination within the image. |
| Load(Stream, params BaseTransform[]) | Loads the image from a System.IO.Stream. |
| Load(Stream, ContainerFormat, ImageRect?, params BaseTransform[]) | Loads the image from a System.IO.Stream. |
| Load(string, params BaseTransform[]) | Loads the image from a file. |
| Load(string, ContainerFormat, ImageRect?, params BaseTransform[]) | Loads the image from a file. |
| LoadMetadata(Stream, ContainerFormat) | Loads the metadata of an image from a System.IO.Stream. |
| LoadMetadata(string, ContainerFormat) | Loads the metadata of an image from a file. |
| PixelFormatFromGuid(Guid) | Converts a GUID of the WIC pixel format to the PixelFormat enumeration value. |
| PixelFormatToGuid(PixelFormat) | Returns a GUID of the corresponding WIC pixel format for the given value of the PixelFormat enumeration. |
| Save(Stream, ContainerFormat, BaseOptions) | Saves the image to a System.IO.Stream using the specified format and options. |
| Save(string, ContainerFormat, BaseOptions) | Saves the image to a file using the specified format and options. |
| SaveAsBmp(Stream, BmpOptions) | Saves the image to a System.IO.Stream in BMP format. |
| SaveAsBmp(string, BmpOptions) | Saves the image to a file in BMP format. |
| SaveAsGif(Stream, GifOptions) | Saves the image to a System.IO.Stream in GIF format. |
| SaveAsGif(string, GifOptions) | Saves the image to a file in GIF format. |
| SaveAsJpeg(Stream, JpegOptions) | Saves the image to a System.IO.Stream in JPEG format. |
| SaveAsJpeg(string, JpegOptions) | Saves the image to a file in JPEG format. |
| SaveAsJpegXR(Stream, JpegXROptions) | Saves the image to a System.IO.Stream in JPEG XR format. |
| SaveAsJpegXR(string, JpegXROptions) | Saves the image to a file in JPEG XR format. |
| SaveAsPng(Stream, PngOptions) | Saves the image to a System.IO.Stream in PNG format. |
| SaveAsPng(string, PngOptions) | Saves the image to a file in PNG format. |
| SaveAsTiff(Stream, TiffOptions) | Saves the image to a System.IO.Stream in TIFF format. |
| SaveAsTiff(string, TiffOptions) | Saves the image to a file in TIFF format. |
| SetDpi(double) | Changes the physical resolution of the image. |
| SetDpi(double, double) | Changes the physical resolution of the image. |
| SetPalette(Palette) | Sets the new color table for the bitmap. |
| ToByteArray() | Stores the image buffer to a byte array (without the palette and metadata information). |
| ToByteArray(ImageRect) | Stores a part of the image buffer to a byte array. |
| ToByteArray(out int) | Stores the image buffer to a byte array with the same stride (bytes per row). |
| ToD2DBitmap1(DeviceContext, BitmapOptions, params BaseTransform[]) | Creates a D2D.Bitmap1 from the image data. |
| ToWPFPixelFormat(PixelFormat) | Returns the System.Windows.Media.PixelFormat struct for the given PixelFormat value. |
| ToWriteableBitmap() | Creates a WriteableBitmap from the image. |
| ToWriteableBitmap(ImageRect) | Creates a WriteableBitmap from a part of the image. |
| Transform(params BaseTransform[]) | Creates a new instance of C1Bitmap as a copy of the current bitmap passed through the set of transformations. |