PsdImage Class |
Namespace: Aspose.PSD.FileFormats.Psd
The PsdImage type exposes the following members.
Name | Description | |
---|---|---|
![]() | PsdImage(Stream) |
Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in stream). Used to initialize psd image with default parameters - Color mode - rgb, 4 channels, 8 bit per channel, Compression - Raw.
|
![]() | PsdImage(String) |
Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in path). Used to initialize psd image with default parameters - Color mode - rgb, 4 channels, 8 bit per channel, Compression - Raw.
|
![]() | PsdImage(RasterImage) |
Initializes a new instance of the PsdImage class from existing raster image (not psd image) with RGB color mode with 4 channels 8 bit/channel and no compression.
|
![]() | PsdImage(Int32, Int32) |
Initializes a new instance of the PsdImage class with specified width and height. Used to initialize empty psd image.
|
![]() | PsdImage(Stream, ColorModes, Int16, Int16, Int32, CompressionMethod) |
Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in stream) with constructor parameters.
|
![]() | PsdImage(String, ColorModes, Int16, Int16, Int32, CompressionMethod) |
Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in path) with constructor parameters.
|
![]() | PsdImage(RasterImage, ColorModes, Int16, Int16, Int32, CompressionMethod) |
Initializes a new instance of the PsdImage class from existing raster image (not psd image) with constructor parameters.
|
![]() | PsdImage(Int32, Int32, IColorPalette, ColorModes, Int16, Int16, Int32, CompressionMethod) |
Initializes a new instance of the PsdImage class with specified width,height, paletter, color mode, channels count and channels bit-length and specified compression mode parameters. Used to initialize empty psd image.
|
Name | Description | |
---|---|---|
![]() | ActiveLayer |
Gets or sets the active layer.
|
![]() | AutoAdjustPalette |
Gets or sets a value indicating whether automatic adjust palette.
(Inherited from Image.) |
![]() | BackgroundColor |
Gets or sets a value for the background color.
(Inherited from Image.) |
![]() | BitsPerChannel |
Gets the bits per channel.
|
![]() | BitsPerPixel |
Gets the image bits per pixel count.
(Overrides ImageBitsPerPixel.) |
![]() | Bounds |
Gets the image bounds.
(Inherited from Image.) |
![]() | BufferSizeHint |
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from Image.) |
![]() | ChannelsCount |
Gets the PSD channels count.
|
![]() | CmykColorProfile |
Gets or sets the CMYK color profile for CMYK PSD images. Must be in pair with RgbColorProfile for correct color conversion.
|
![]() | ColorMode |
Gets or sets the color mode.
|
![]() | Compression |
Gets the compression method.
|
![]() | Container |
Gets the Image container.
(Inherited from Image.) |
![]() | DataStreamContainer |
Gets the object's data stream.
(Inherited from DataStreamSupporter.) |
![]() | Disposed |
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.) |
![]() | FileFormat |
Gets a value of file format
(Overrides ImageFileFormat.) |
![]() ![]() | GlobalAngle |
Gets or sets the global angle.
|
![]() | GlobalLayerMaskInfo |
Gets the global layer mask info.
|
![]() | GlobalLayerResources |
Gets or sets the global layer resources.
|
![]() | GrayColorProfile |
Gets or sets the GRAY (monochrome) color profile for Grayscale PSD images.
|
![]() | HasAlpha |
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage.
(Overrides RasterImageHasAlpha.) |
![]() | HasBackgroundColor |
Gets or sets a value indicating whether image has background color.
(Inherited from Image.) |
![]() | HasTransparencyData |
Gets or sets a value indicating whether first alpha channel contains the transparency data for the merged result when specifying layers data.
|
![]() | HasTransparentColor |
Gets a value indicating whether image has transparent color.
(Inherited from RasterImage.) |
![]() | Height |
Gets the image height.
(Overrides ImageHeight.) |
![]() | HorizontalResolution |
Gets or sets the horizontal resolution, in pixels per inch, of this PsdImage.
(Overrides RasterImageHorizontalResolution.) |
![]() | ImageOpacity |
Gets opacity of this image.
(Inherited from RasterImage.) |
![]() | ImageResources |
Gets or sets the PSD image resources.
|
![]() | InterruptMonitor |
Gets or sets the interrupt monitor.
(Inherited from Image.) |
![]() | IsCached |
Gets a value indicating whether image data is cached currently.
(Inherited from RasterCachedImage.) |
![]() | IsFlatten |
Gets a value indicating whether psd image is flattened.
|
![]() | IsRawDataAvailable |
Gets a value indicating whether raw data loading is available.
(Inherited from RasterImage.) |
![]() | Layers |
Gets or sets the PSD layers.
|
![]() | LinkedLayersManager |
Gets the linked layers manager.
|
![]() | Palette |
Gets or sets the color palette. The color palette is not used when pixels are represented directly.
(Inherited from Image.) |
![]() | PremultiplyComponents |
Gets or sets a value indicating whether the image components must be premultiplied.
(Inherited from RasterImage.) |
![]() | RawCustomColorConverter |
Gets or sets the custom color converter
(Inherited from RasterImage.) |
![]() | RawDataFormat |
Gets the raw data format.
(Overrides RasterImageRawDataFormat.) |
![]() | RawDataSettings |
Gets the current raw data settings. Note when using these settings the data loads without conversion.
(Inherited from RasterImage.) |
![]() | RawFallbackIndex |
Gets or sets the fallback index to use when palette index is out of bounds
(Inherited from RasterImage.) |
![]() | RawIndexedColorConverter |
Gets or sets the indexed color converter
(Inherited from RasterImage.) |
![]() | RawLineSize |
Gets the raw line size in bytes.
(Inherited from RasterImage.) |
![]() | RgbColorProfile |
Gets or sets the RGB color profile for CMYK PSD images. Must be in pair with CmykColorProfile for correct color conversion.
|
![]() | Size |
Gets the image size.
(Inherited from Image.) |
![]() | SmartObjectProvider |
Gets the smart object provider.
|
![]() | TransparentColor |
Gets the image transparent color.
(Inherited from RasterImage.) |
![]() | UpdateXmpData |
Gets or sets a value indicating whether to update the XMP metadata.
(Inherited from RasterImage.) |
![]() | UseRawData |
Gets or sets a value indicating whether to use raw data loading when the raw data loading is available.
(Inherited from RasterImage.) |
![]() | Version |
Gets or sets the version.
|
![]() | VerticalResolution |
Gets or sets the vertical resolution, in pixels per inch, of this PsdImage.
(Overrides RasterImageVerticalResolution.) |
![]() | Width |
Gets the image width.
(Overrides ImageWidth.) |
![]() | XmpData |
Gets or sets the XMP metadata.
(Overrides RasterImageXmpData.) |
Name | Description | |
---|---|---|
![]() ![]() | AddBlackWhiteAdjustmentLayer |
Adds the black white adjustment layer.
|
![]() | AddBrightnessContrastAdjustmentLayer |
Adds the brightness/contrast adjustment layer.
|
![]() | AddChannelMixerAdjustmentLayer |
Adds the channel mixer adjustment layer with default parameters
|
![]() | AddColorBalanceAdjustmentLayer |
Adds the color balance adjustment layer.
|
![]() | AddCurvesAdjustmentLayer |
Adds the Curves Adjustment layer.
|
![]() | AddExposureAdjustmentLayer |
Adds the exposure adjustment layer.
|
![]() | AddHueSaturationAdjustmentLayer |
Adds the hue/saturation adjustment layer.
|
![]() ![]() | AddInvertAdjustmentLayer |
Adds an invert adjustment layer.
|
![]() ![]() | AddLayer |
Adds the layer.
|
![]() | AddLayerGroup |
Adds the layer group.
|
![]() | AddLevelsAdjustmentLayer |
Adds the Levels adjustment layer.
|
![]() | AddPhotoFilterLayer |
Adds the PhotoFilter layer.
|
![]() ![]() | AddRegularLayer |
Adds a new regular layer.
|
![]() | AddTextLayer |
Adds a new Text layer.
|
![]() | AdjustBrightness |
Adjust of a brightness for image.
(Overrides RasterCachedImageAdjustBrightness(Int32).) |
![]() | AdjustContrast |
Image contrasting
(Overrides RasterCachedImageAdjustContrast(Single).) |
![]() | AdjustGamma(Single) |
Gamma-correction of an image.
(Overrides RasterCachedImageAdjustGamma(Single).) |
![]() | AdjustGamma(Single, Single, Single) |
Gamma-correction of an image.
(Overrides RasterCachedImageAdjustGamma(Single, Single, Single).) |
![]() | BinarizeBradley(Double) |
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
(Overrides RasterCachedImageBinarizeBradley(Double).) |
![]() | BinarizeBradley(Double, Int32) |
Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding
(Overrides RasterCachedImageBinarizeBradley(Double, Int32).) |
![]() | BinarizeFixed |
Binarization of an image with predefined threshold
(Overrides RasterCachedImageBinarizeFixed(Byte).) |
![]() | BinarizeOtsu |
Binarization of an image with Otsu thresholding
(Overrides RasterCachedImageBinarizeOtsu.) |
![]() | CacheData |
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer.
(Inherited from RasterCachedImage.) |
![]() | CanSave |
Determines whether image can be saved to the specified file format represented by the passed save options.
(Inherited from Image.) |
![]() ![]() | Convert |
Converts this image format to the one specified in options.
|
![]() | Crop(Rectangle) |
Cropping the image.
(Overrides RasterCachedImageCrop(Rectangle).) |
![]() | Crop(Int32, Int32, Int32, Int32) |
Crop image with shifts.
(Inherited from RasterImage.) |
![]() | Dispose |
Disposes the current instance.
(Inherited from DisposableObject.) |
![]() | Dither(DitheringMethod, Int32) |
Performs dithering on the current image.
(Inherited from RasterImage.) |
![]() | Dither(DitheringMethod, Int32, IColorPalette) |
Performs dithering on the current image.
(Overrides RasterCachedImageDither(DitheringMethod, Int32, IColorPalette).) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Filter |
Filters the specified rectangle.
(Overrides RasterImageFilter(Rectangle, FilterOptionsBase).) |
![]() | FlattenImage |
Flattens all layers.
|
![]() | GetArgb32Pixel |
Gets an image 32-bit ARGB pixel.
(Inherited from RasterImage.) |
![]() | GetDefaultArgb32Pixels |
Gets the default 32-bit ARGB pixels array.
(Inherited from RasterImage.) |
![]() | GetDefaultOptions |
Gets the default options.
(Inherited from Image.) |
![]() | GetDefaultPixels |
Gets the default pixels array using partial pixel loader.
(Inherited from RasterImage.) |
![]() | GetDefaultRawData(Rectangle, RawDataSettings) |
Gets the default raw data array.
(Inherited from RasterImage.) |
![]() | GetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings) |
Gets the default raw data array using partial pixel loader.
(Inherited from RasterImage.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetModifyDate |
Gets the date and time the resource image was last modified.
(Inherited from RasterImage.) |
![]() | GetOriginalOptions |
Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
Save(String) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the Save(String, ImageOptionsBase) method as the second parameter.
(Inherited from Image.) |
![]() | GetPixel |
Gets an image pixel.
(Inherited from RasterImage.) |
![]() | GetSkewAngle |
Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning.
(Inherited from RasterImage.) |
![]() | GetType | Gets the type of the current instance. (Inherited from Object.) |
![]() | Grayscale |
Transformation of an image to its grayscale representation
(Overrides RasterCachedImageGrayscale.) |
![]() | LoadArgb32Pixels |
Loads 32-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() | LoadArgb64Pixels |
Loads 64-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() | LoadCmyk32Pixels |
Loads pixels in CMYK format.
(Inherited from RasterImage.) |
![]() | LoadCmykPixels | Obsolete.
Loads pixels in CMYK format.
This method is deprecated. Please use more effective the LoadCmyk32Pixels(Rectangle) method.
(Inherited from RasterImage.) |
![]() | LoadPartialArgb32Pixels |
Loads 32-bit ARGB pixels partially by packs.
(Inherited from RasterImage.) |
![]() | LoadPartialPixels |
Loads pixels partially by packs.
(Inherited from RasterImage.) |
![]() ![]() | LoadPixels |
Loads pixels.
(Inherited from RasterImage.) |
![]() | LoadRawData(Rectangle, RawDataSettings, IPartialRawDataLoader) |
Loads raw data.
(Inherited from RasterImage.) |
![]() | LoadRawData(Rectangle, Rectangle, RawDataSettings, IPartialRawDataLoader) |
Loads raw data.
(Inherited from RasterImage.) |
![]() | MergeLayers |
Merges the layers.
|
![]() | NormalizeAngle |
Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses GetSkewAngle and Rotate(Single) methods.
(Inherited from RasterImage.) |
![]() | NormalizeAngle(Boolean, Color) |
Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses GetSkewAngle and Rotate(Single, Boolean, Color) methods.
(Inherited from RasterImage.) |
![]() | ReadArgb32ScanLine |
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.) |
![]() | ReadScanLine |
Reads the whole scan line by the specified scan line index.
(Inherited from RasterImage.) |
![]() | ReplaceColor(Int32, Byte, Int32) |
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.
(Overrides RasterImageReplaceColor(Int32, Byte, Int32).) |
![]() | ReplaceColor(Color, Byte, Color) |
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.
(Inherited from RasterImage.) |
![]() | ReplaceNonTransparentColors(Int32) |
Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one.
(Overrides RasterImageReplaceNonTransparentColors(Int32).) |
![]() | ReplaceNonTransparentColors(Color) |
Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one.
(Inherited from RasterImage.) |
![]() ![]() | Resize(Int32, Int32) |
Resizes the image. The default LeftTopToLeftTop is used.
(Inherited from Image.) |
![]() | Resize(Int32, Int32, ImageResizeSettings) |
Resizes the image.
(Inherited from RasterCachedImage.) |
![]() ![]() | Resize(Int32, Int32, ResizeType) |
Resizes the image.
(Inherited from RasterCachedImage.) |
![]() | ResizeHeightProportionally(Int32) |
Resizes the height proportionally.
(Inherited from Image.) |
![]() | ResizeHeightProportionally(Int32, ImageResizeSettings) |
Resizes the height proportionally.
(Overrides ImageResizeHeightProportionally(Int32, ImageResizeSettings).) |
![]() | ResizeHeightProportionally(Int32, ResizeType) |
Resizes the height proportionally.
(Overrides ImageResizeHeightProportionally(Int32, ResizeType).) |
![]() | ResizeWidthProportionally(Int32) |
Resizes the width proportionally.
(Inherited from Image.) |
![]() | ResizeWidthProportionally(Int32, ImageResizeSettings) |
Resizes the width proportionally.
(Overrides ImageResizeWidthProportionally(Int32, ImageResizeSettings).) |
![]() | ResizeWidthProportionally(Int32, ResizeType) |
Resizes the width proportionally.
(Overrides ImageResizeWidthProportionally(Int32, ResizeType).) |
![]() ![]() | Rotate(Single) |
Rotate image around the center.
(Overrides RasterImageRotate(Single).) |
![]() | Rotate(Single, Boolean, Color) |
Rotate image around the center.
(Overrides RasterCachedImageRotate(Single, Boolean, Color).) |
![]() ![]() | RotateFlip |
Rotates, flips, or rotates and flips the image.
(Inherited from RasterCachedImage.) |
![]() | Save |
Saves the image data to the underlying stream.
(Inherited from Image.) |
![]() | Save(Stream) |
Saves the object's data to the specified stream.
(Inherited from DataStreamSupporter.) |
![]() | Save(String) |
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.) |
![]() | Save(String, Boolean) |
Saves the object's data to the specified file location.
(Inherited from DataStreamSupporter.) |
![]() ![]() | Save(Stream, ImageOptionsBase) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from Image.) |
![]() ![]() | Save(String, ImageOptionsBase) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() | Save(String, ImageOptionsBase, Rectangle) |
Saves the object's data to the specified file location in the specified file format according to save options.
(Inherited from Image.) |
![]() | Save(Stream, ImageOptionsBase, Rectangle) |
Saves the image's data to the specified stream in the specified file format according to save options.
(Inherited from RasterImage.) |
![]() | SaveArgb32Pixels |
Saves the 32-bit ARGB pixels.
(Inherited from RasterImage.) |
![]() | SaveCmyk32Pixels |
Saves the pixels.
(Inherited from RasterImage.) |
![]() | SaveCmykPixels | Obsolete.
Saves the pixels.
This method is deprecated. Please use more effective the SaveCmyk32Pixels(Rectangle, Int32) method.
(Inherited from RasterImage.) |
![]() ![]() | SavePixels |
Saves the pixels.
(Inherited from RasterImage.) |
![]() | SaveRawData |
Saves the raw data.
(Inherited from RasterImage.) |
![]() | SetArgb32Pixel |
Sets an image 32-bit ARGB pixel for the specified position.
(Inherited from RasterImage.) |
![]() | SetPalette |
Sets the image palette.
(Inherited from RasterImage.) |
![]() | SetPixel |
Sets an image pixel for the specified position.
(Inherited from RasterImage.) |
![]() | SetResolution |
Sets the resolution for this RasterImage.
(Inherited from RasterImage.) |
![]() | ToBitmap |
Converts raster image to the bitmap.
(Inherited from RasterImage.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteArgb32ScanLine |
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.) |
![]() | WriteScanLine |
Writes the whole scan line to the specified scan line index.
(Inherited from RasterImage.) |
Name | Description | |
---|---|---|
![]() ![]() | DefaultVersion |
The default PSD version.
|
[C#] string sourceFileName = "TheHat.psd"; var pngOptions = new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha }; // Whole image rotating using (PsdImage image = (PsdImage)Image.Load(sourceFileName)) { for (int i = 0; i < 4; i++) { int angle = i * 45; image.Rotate(angle); string outFileName = "TheHatRotated" + angle + ".png"; image.Save(outFileName, pngOptions); } } // Layer rotating using (PsdImage image = (PsdImage)Image.Load(sourceFileName)) { for (int i = 0; i < 4; i++) { int angle = i * 45; image.Layers[1].Rotate(angle); string outFileName = "TheHatLayerRotated" + angle + ".png"; image.Save(outFileName, pngOptions); } }