BRL.JPGLoader: Functions Modinfo Source  

JPG loader

The JPG loader module provides the ability to load JPG format pixmaps.

Functions

Function LoadPixmapJPeg:TPixmap( url:Object )
DescriptionLoad a Pixmap in JPeg format.
InformationLoadPixmapJPG loads a pixmap from url in JPeg format.

If the pixmap cannot be loaded, Null is returned.

Function SavePixmapJPeg( pixmap:TPixmap,url:Object,quality=75 )
DescriptionSave a Pixmap in JPeg format.
InformationSaves pixmap to url in JPeg format. If successful, SavePixmapJPeg returns True, otherwise False.

The optional quality parameter should be in the range 0 to 100, where 0 indicates poor quality (smallest) and 100 indicates best quality (largest).

Module Information

Version1.04
AuthorSimon Armstrong, Jeffrey D. Panici
LicenseBlitz Shared Source Code
CopyrightBlitz Research Ltd
ModserverBRL
History1.04 Release
HistoryRemoved print
History1.03 Release
HistoryChanged ReadBytes to Read for loader
HistoryAdded SaveJPEG function, thanks to Jeffrey D. Panici for the writefunc `fix'
History1.02 Release
HistoryAdded support for monochrome / single channel