View Single Post
  #13  
Old 09-03-2009, 10:48 PM
HoneyQ143 HoneyQ143 is offline
Member
 
Join Date: Sep 2009
Posts: 1
Credits: 230
HoneyQ143
Default RE: How to use GD Image Writing?

For image writing, the only mandatory functions are putC and putBuf, which return the number of characters written; these functions must write the number of characters requested except in the event of an error. The seek and tell functions are only required in conjunction with the gd2 file format, which supports quick loading of partial images. The gd_free function will not be invoked when calling the standard Ctx functions; it is an implementation convenience when adding new data types to gd. For examples, see gd_png.c, gd_gd2.c, gd_jpeg.c, etc., all of which rely on gdIOCtx to implement the standard image read and write functions.


________________
Writing jobs
Reply With Quote