Fpg new

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT fpg_new ( )

Creates and initializes a new file.

To add graphics to the created file, use the returned fileID in the function fpg_add(). The file can be saved with fpg_save(). To free a file, use fpg_unload().

The previous name new_fpg() is deprecated.

Returns

INT : fileID

-1 - Too many files or insufficient memory.
>=0 - The fileID of the new file.

Errors

Insufficient memory - There is insufficient memory available. This error doesn't occur often.


Mod_map
Constants
B'"`UNIQ--nowiki-00000003-QINU`"'CLEARCHARSET'"`UNIQ--nowiki-00000003-QINU`"'CP850CHARSET'"`UNIQ--nowiki-00000003-QINU`"'ISO8859G'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'SPEEDG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPG'"`UNIQ--nowiki-00000003-QINU`"'ANIMATION'"`UNIQ--nowiki-00000003-QINU`"'STEPSG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'XG'"`UNIQ--nowiki-00000003-QINU`"'CENTER'"`UNIQ--nowiki-00000003-QINU`"'YG'"`UNIQ--nowiki-00000003-QINU`"'DEPTHG'"`UNIQ--nowiki-00000003-QINU`"'FRAMESG'"`UNIQ--nowiki-00000003-QINU`"'HEIGHTG'"`UNIQ--nowiki-00000003-QINU`"'PITCHG'"`UNIQ--nowiki-00000003-QINU`"'WIDEG'"`UNIQ--nowiki-00000003-QINU`"'WIDTHG'"`UNIQ--nowiki-00000003-QINU`"'X'"`UNIQ--nowiki-00000003-QINU`"'CENTERG'"`UNIQ--nowiki-00000003-QINU`"'Y'"`UNIQ--nowiki-00000003-QINU`"'CENTERNFB'"`UNIQ--nowiki-00000003-QINU`"'FIXEDWIDTHNFB'"`UNIQ--nowiki-00000003-QINU`"'VARIABLEWIDTH
Functions Bdfload()Centerset()Colorfind()Colorsget()Colorsset()Fade()Fadeoff()Fadeon()Fntload()Fntnew()Fntsave()Fntunload()Fpgadd()Fpgdel()Fpgexists()Fpgload()Fpgnew()Fpgsave()Fpgunload()Getpixel()Glyphget()Glyphset()Graphicinfo()Graphicset()Mapblockcopy()Mapbuffer()Mapclear()Mapclone()Mapdel()Mapexists()Mapgetpixel()Mapinfo()Mapinfoget()Mapinfoset()Mapload()Mapname()Mapnew()Mapput()Mapputpixel()Mapsave()Mapsetname()Mapunload()Mapxput()Mapxputnp()Palclone()Paldel()Palget()Palload()Palmapassign()Palmapgetid()Palmapremove()Palnew()Palrefresh()Palsave()Palset()Palunload()Paletteconvert()Paletteroll()Pcxload()Pngload()Pngsave()Pointget()Pointset()Putpixel()Rgb()Rgbget()Rgba()Rgbaget()