Fenix Manual
Fenix Manual
Command Reference
Map Commands

Get_Point
Graphic_Info
Graphic_Set
Load_Map
Load_Pcx
Load_Png
Map_Block_Copy
Map_Clear
Map_Clone
Map_Exists
Map_Get_Pixel
Map_Name
Map_Put
Map_Put_Pixel
Map_Set_Name
New_Map
Save_Map
Save_Png
Set_Center
Set_Point
Unload_Map

Load_Png
Last Modified: May 23, 2005 20:05PM
(Any)
Description

INT LOAD_PNG (STRING ARCHIVE)
It recovers of disk a PNG graph

PARAMETERS:
STRING archive: Name of archive

DESCRIPTION:
This function loads a PNG graph from disk. The PNG is a powerful graph format that supports a high compression without loss of data and a lot of other options.

Among other things, a PNG graph supports different levels of transparency per pixel. However, Fenix only accepts two levels (a pixel is transparent, or it is not). This function recovers those transparent pixels that have 50% or more of transparency in the PNG, and opaques the rest.

LOAD_PNG returns a whole number that identifies the PNG graph. It is then possible to use this value with any function that allows a graph like parameter, indicating the code 0 of library, or assigning the number to the variable Graph.

NOTES:
It is only possible to visualize graphs of 16 bits if the current graph mode 16 bits. But it is possible to visualize graphs of 8 bits in 16 bit modes.

There is an active palette of colours all the time. Use only graphs of 8 bits that use the same colour palette. Fenix will automatically use the colour palette of the first graph returned of the disk and will ignore any other palettes belonging to any graphs loaded after the first one. Even in 16 bit modes a colour palette exists (but in this mode the palette only affects the graphs of 16 bits).

User Contributed Notes
Load_Png
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Fri, 27 May 2005 - 6:19:57

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters