PsdImage.PsdImage

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.

public PsdImage(string path)
ParameterTypeDescription
pathStringThe path to load pixel and palette data from and initialize with.

See Also


PsdImage(string, ColorModes, short, short, int, CompressionMethod)

Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in path) with constructor parameters.

public PsdImage(string path, ColorModes colorMode, short channelBitDepth, short channels, 
    int psdVersion, CompressionMethod compression)
ParameterTypeDescription
pathStringThe path to load pixel and palette data from and initialize with.
colorModeColorModesThe color mode.
channelBitDepthInt16The PSD bit depth per channel.
channelsInt16The PSD channels count.
psdVersionInt32The PSD version.
compressionCompressionMethodThe compression to use.

See Also


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.

public PsdImage(Stream stream)
ParameterTypeDescription
streamStreamThe stream to load pixel and palette data from and initialize with.

See Also


PsdImage(Stream, ColorModes, short, short, int, CompressionMethod)

Initializes a new instance of the PsdImage class from specified path from raster image (not psd image in stream) with constructor parameters.

public PsdImage(Stream stream, ColorModes colorMode, short channelBitDepth, short channels, 
    int psdVersion, CompressionMethod compression)
ParameterTypeDescription
streamStreamThe stream to load pixel and palette data from and initialize with.
colorModeColorModesThe color mode.
channelBitDepthInt16The PSD bit depth per channel.
channelsInt16The PSD channels count.
psdVersionInt32The PSD version.
compressionCompressionMethodThe compression to use.

See Also


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.

public PsdImage(RasterImage rasterImage)
ParameterTypeDescription
rasterImageRasterImageThe image to load pixel and palette data from and initialize with.

See Also


PsdImage(RasterImage, ColorModes, short, short, int, CompressionMethod)

Initializes a new instance of the PsdImage class from existing raster image (not psd image) with constructor parameters.

public PsdImage(RasterImage rasterImage, ColorModes colorMode, short channelBitDepth, 
    short channels, int psdVersion, CompressionMethod compression)
ParameterTypeDescription
rasterImageRasterImageThe image to load pixel and palette data from and initialize with.
colorModeColorModesThe color mode.
channelBitDepthInt16The PSD bit depth per channel.
channelsInt16The PSD channels count.
psdVersionInt32The PSD version.
compressionCompressionMethodThe compression to use.

See Also


PsdImage(int, int)

Initializes a new instance of the PsdImage class with specified width and height. Used to initialize empty psd image.

public PsdImage(int width, int height)
ParameterTypeDescription
widthInt32The image width.
heightInt32The image height.

See Also


PsdImage(int, int, IColorPalette, ColorModes, short, short, int, 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.

public PsdImage(int width, int height, IColorPalette colorPalette, ColorModes colorMode, 
    short channelBitDepth, short channels, int psdVersion, CompressionMethod compression)
ParameterTypeDescription
widthInt32The image width.
heightInt32The image height.
colorPaletteIColorPaletteThe color palette.
colorModeColorModesThe color mode.
channelBitDepthInt16The PSD bit depth per channel.
channelsInt16The PSD channels count.
psdVersionInt32The PSD version.
compressionCompressionMethodThe compression to use.

See Also