RasterEdge XImage.Raster C# library has one class RasterImage, which is used for representing images
in your C# ASP.NET Core, MVC, Windows Forms and WPF applications.
RasterImage includes the following image properties
Width. The width of the image in pixels.
Height. The height of the image in pixels.
HResolution. Image horizontal resolution. The number of pixels per inch.
VResolution. Image vertical resolution. The number of pixels per inch.
ColorSpace. Image color space.
Compress. Image compression.
Palette. Image color palette.
format. Image format.
Create images in C#
Create image from scratch
Using RasterEdge XImage.Raster C# image library, you can easily create a blank image from scratch in C# application.
The following C# example codes will create a new image with specified image size and background color.
Create a RasterImage object, with specified image width, height in pixel, and image background color in rgb.
Call method Save to print the image to the specified image file path.
Using XImage.Raster C# library, you can create RasterImage object directly from image in memory, such as Stream, byte array objects.
The C# source codes below show how to load an image in the Stream object in C# program.