JpegOptions Class

Summary: The jpeg file format create options.

Module: aspose.psd.imageoptions

Full Name: aspose.psd.imageoptions.JpegOptions

Inheritance: ImageOptionsBase

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
JpegOptions()Initializes a new instance of the JpegOptions class.
JpegOptions(jpeg_options)Initializes a new instance of the JpegOptions class.

Properties

NameTypeAccessDescription
bits_per_channelbyter/wGets or sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
buffer_size_hintintr/wGets or sets the buffer size hint which is defined max allowed size for all internal buffers.
cmyk_color_profileStreamSourcer/wThe destination CMYK color profile for CMYK jpeg images. Use for saving images. Must be in pair with RGBColorProfile for correct color conversion.
color_typeJpegCompressionColorModer/wGets or sets the color type for jpeg image.
commentstringr/wGets or sets the jpeg file comment.
compression_typeJpegCompressionModer/wGets or sets the compression type.
default_memory_allocation_limitintr/wGets or sets the default memory allocation limit.
default_replacement_fontstringr/wGets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
To take proper name of default font can be used next code snippet:
System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection();
System.Drawing.FontFamily families = col.Families;
string defaultFontName = families[0].Name;
PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });
disposedboolrGets a value indicating whether this instance is disposed.
exif_dataJpegExifDatar/wGet or set exif data container
full_frameboolr/wGets or sets a value indicating whether [full frame].
horizontal_samplingbyter/wGets or sets the horizontal subsamplings for each component.
jfifJFIFDatar/wGets or sets the jfif.
jpeg_ls_allowed_lossy_errorintr/wGets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
jpeg_ls_interleave_modeJpegLsInterleaveModer/wGets or sets the JPEG-LS interleave mode.
jpeg_ls_presetJpegLsPresetCodingParametersr/wGets or sets the JPEG-LS preset parameters.
multi_page_optionsMultiPageOptionsr/wThe multipage options
paletteIColorPaletter/wGets or sets the color palette.
preblend_alpha_if_presentboolr/wGets or sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
qualityintr/wGets or sets image quality.
rd_opt_settingsRdOptimizerSettingsr/wGets or sets the RD optimizer settings.
resolution_settingsResolutionSettingr/wGets or sets the resolution settings.
resolution_unitResolutionUnitr/wGets or sets the resolution unit.
rgb_color_profileStreamSourcer/wThe destination RGB color profile for CMYK jpeg images. Use for saving images. Must be in pair with CMYKColorProfile for correct color conversion.
sample_rounding_modeSampleRoundingModer/wGets or sets the sample rounding mode to fit an 8-bit value to an n-bit value.
scaled_qualityintrThe scaled quality.
sourceSourcer/wGets or sets the source to create image in.
vector_rasterization_optionsVectorRasterizationOptionsr/wGets or sets the vector rasterization options.
vertical_samplingbyter/wGets or sets the vertical subsamplings for each component.
xmp_dataXmpPacketWrapperr/wGets or sets the XMP metadata container.

Methods

NameDescription
clone()Clones this instance.

Constructor: JpegOptions()

 JpegOptions() 

Initializes a new instance of the JpegOptions class.

Constructor: JpegOptions(jpeg_options)

 JpegOptions(jpeg_options) 

Initializes a new instance of the JpegOptions class.

Parameters:

ParameterTypeDescription
jpeg_optionsJpegOptionsThe JPEG options.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ImageOptionsBaseReturns shallow copy of this instance