Bitmap provides number of supported features for handling images. Besides simple image display and save, you can use Bitmap for various purposes listed below:
- Load Images
Bitmap loads or imports image with a variety of container formats including BMP, PNG, JPEG, JPEG-XR, TIFF, ICO, and GIFF (Single frame). The image can be loaded from a file, stream, from another bitmap object, or imported from a byte array. Bitmap also allows loading several images, one by one, into the same instance of C1Bitmap.
- Save Images
As with loading, the image from C1Bitmap can be saved to a StorageFile or IOutputStream and to System.IO.Stream. C1Bitmap provides a specific SaveAs method for each of the supported container formats, such as BMP, PNG, JPEG, JPEG-XR, TIFF, and GIFF (Single frame) except ICO as saving an image in this format is not supported.
- Transform Images
With Bitmap, you can apply various transformations on an image. For instance, you can easily clip, crop, rotate, scale in and scale out an image by applying transformation in code using Transform method.
- Apply Direct2D Effects
Bitmap allows you to apply Direct2D effects on an image for superior imaging effects.
- Convert to/from Platform-Specific Bitmap Objects
One of the key ability of Bitmap is its support for conversion to/from the platform-specific bitmap objects. For example, in a Windows Store app you can easily convert C1Bitmap to a WriteableBitmap or SoftwareBitmap. Also, you can import, for example, a WriteableBitmap as fragment into the existing C1Bitmap or create a new C1Bitmap from the given instance of SoftwareBitmap.