How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Advanced Load Options
Image Access and Modify
Advanced Load Options
  |  
Home ›› XImage.Raster ›› C# Raster: Advanced Load Options

C# RasterImage - Image LoadOption in C#.NET


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




Specify Load Options



Load Option(LoadOption) can be used, if desired, to provide specific instructions when loading an image form file or from stream. If load option is not set, it will load image with the default loadoptions.


General Load Options


CropRectangle.


  Get the cropped image


LoadAlphaChannel


  Remove alpha channel when loading.


LoadResizeAntiAliasl


  Anti-aliasing is enabled during a load resize


Maintain AspectRatio


  preserve image aspect ratio when resizing an image


Resize


  Set the target resize size when loaded


ScaleToGray


  load to gray scale


ThumbnailSize


  Load the image as a thumbnail, and set the target thumbnail size


RotateAngle


  Set the rotate angle when loaded


Resolution


  Set the resolution when loaded


NegateColor


  Replace each pixel with its complementary color(white becomes black, yellow becomes blue, etc.)


Image Color Management Loading Options


UseEmbeddedColorManagement


  Set the color profile included in the image metadata applied when loading the image


TargetProfileName


  Set the icc profile name to apple to the image when loaded


RenderIntent


  Set the specified render intent when loaded


Image Format-Specific Load Options


JPEG


  Cosited: The Cosited property indicates whether image was compressed with cosited sub-sampling.


  SmoothImage: The Enhanced property specifies whether the JPEG decoder should use enhanced decomposition method.


C#: Construct a LoadOption object



This is a C# programming example for creating a load option object.




LoadOption option = new LoadOption();
option.LoadAlphaChannel = false;