Gin
Loading...
Searching...
No Matches
PCXImageFormat Class Reference

Support for reading and writing ZSoft PCX files. More...

#include <gin_pcximageformat.h>

Inherits juce::ImageFileFormat.

Public Member Functions

juce::String getFormatName () override
bool canUnderstand (juce::InputStream &input) override
bool usesFileExtension (const juce::File &possibleFile) override
juce::Image decodeImage (juce::InputStream &input) override
bool writeImageToStream (const juce::Image &sourceImage, juce::OutputStream &destStream) override

Detailed Description

Support for reading and writing ZSoft PCX files.

Reads 1, 2, 4 and 8 bits per plane across 1, 3 and 4 planes, which covers monochrome, the planar EGA layouts, 256 colour images with the VGA palette that trails the file, and 24 bit colour. Both the run length encoded and the rare uncompressed encodings are handled.

Always writes 24 bit run length encoded images. PCX carries no alpha, so an image with transparency loses it.

Member Function Documentation

◆ getFormatName()

juce::String PCXImageFormat::getFormatName ( )
override

◆ canUnderstand()

bool PCXImageFormat::canUnderstand ( juce::InputStream & input)
override

◆ usesFileExtension()

bool PCXImageFormat::usesFileExtension ( const juce::File & possibleFile)
override

◆ decodeImage()

juce::Image PCXImageFormat::decodeImage ( juce::InputStream & input)
override

◆ writeImageToStream()

bool PCXImageFormat::writeImageToStream ( const juce::Image & sourceImage,
juce::OutputStream & destStream )
override

The documentation for this class was generated from the following file: