XImage.Raster
Features
Tech Specs
How-to C#
Pricing

C# Imaging Library
Create image with options applied in C#


How to Load image(s) to memory addition options with C# XImage.Raster SDK.



In XImage.Raster C# imaging library, there are a series of settings for image loading, so you can specify the image size, color, rotation, and resolution when load the input image as a RasterImage object, and you can also decide which area of the input image can be load, or if use the embedded color management.


How to read, load images with cusotmized options in C# ASP.NET, Windows applications?

  1. Download XImage.Raster C# imaging library
  2. Install C# image library to load existing TIFF, BMP, PNG, JPG images with options specified in .NET applications
  3. Step by Step Tutorial










It's very easy to load image with options applied using C# imaging library, follow the steps below:
  1. Create a LoadOption object
  2. Specify and customize the image loading options. Here we choose to rotate original image to 90 degrees.
  3. Pass the cusotmized LoadOption object to RasterImage during image creation.

LoadOption option = new LoadOption();
option.RotateAngle = RotateAngle.Rotate90;
RasterImage anImage = new RasterImage("C:\\Input\\raster-sample-image.png", option);
anImage.Save("C:\\output\\raster-image-load-option-rotate-applied.png");


Original image Rotated image




List of load options


  • CropRectangle only load this specified area of input image as RasterImage object
  • Jpeg this is a class special for jpeg format. If true, smooth the input image
  • LoadAlphaChannel If true, load the alpha channel, if false, image's transparency will be abandoned.
  • LoadResizeAntiAlias if true, turned of Anti-alias true
  • MaintainAspectRatio if true, maintain the aspect ratio when resize the input image.
  • NegateColor if true, negate the color of input image
  • Resize set the target size for loading
  • RotateAngle set the rotate angle for loading
  • Rresolution set the resolution for loading
  • RenderIntent set the render intent for loading
  • ThumbnailSize load the input image as thumbnail
  • UseEmbeddedColorManagement if true, use embedded color management.
  • TargetProfileName use the specified color file, should set flag UseEmbeddedColorManagement to false