ImageGear for Java
setForceColorspace Method
EnumSet<com.accusoft.imagegear.core.ImGearColorSpaceIDs>.
Sets the value indicating that images should only be saved in the specified color space.

Invoke this method to set specific color space to tell ImageGear use only this color space for image saving. If the file format supports this color space for saving, and other settings and control parameters allow saving to this color space, the image will be saved with the specified color space. Otherwise, ImageGear will throw an exception with com.accusoft.imagegear.core.ImGearErrorCodes.CANT_SAVE_FORMAT error code.

This mode can be used for conversion of image files from one color space to another, without having to store converted image in memory. To convert an image, load it into ImageGear, set ForceColorspace to desired color space, and save the image.

The default value is EnumSet.noneOf(ImGearColorSpaceIDs.class).

com.accusoft.imagegear.core.ImGearErrorCodes

Syntax
public void setForceColorspace( 
   java.util.EnumSet<ImGearColorSpaceIDs> value
)

Parameters

value
EnumSet<com.accusoft.imagegear.core.ImGearColorSpaceIDs>.
See Also

Reference

ImGearSaveOptions Class
ImGearSaveOptions Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback