ImageGearJava Project > com.accusoft.imagegear.formats Package > ImGearSaveOptions Class : setForceColorspace Method |
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)
.
public void setForceColorspace( java.util.EnumSet<ImGearColorSpaceIDs> value ) |
EnumSet<com.accusoft.imagegear.core.ImGearColorSpaceIDs>
.