imgbuffer Class Reference


The imgbuffer class is a child of the binary class. Its purpose is to hold an image file in memory. It can contain a png, a jpeg, or any GD supported image file type. It ensure that the proper destructor is called whenever the object is destroyed, even when the destruction occurs during the garbage collection. As needed when using GD, imgbuffer-destructor makes use of gdFree() instead of free() or delete.


  • imgbuffer-constructor
  • imgbuffer-destructor

  • List of all Inherited Classes

  • binary
  • class

  • imgbuffer-constructor

    (make-instance imgbuffer size address )

    Function Type subr
    Arguments the symbol imgbuffer, mandatory integer, mandatory unsigned integer
    Return Value an imagebuffer object
    Description never call imagebuffer-constructor directly but always through (make-instance) ; the first argument gives the length of the block allocated in binary space, the second argument gives the address where the block already exist as GD image segment; actually there is no need to call this constructor because it is used by the conversion functions like gdimage-png
    Example (make-instance imgbuffer size address)

    imgbuffer-destructor

    (destroy-instance buffer)

    Function Type subr
    Arguments an imagebuffer object
    Return Value nil
    Description never call imagebuffer-destructor directly but always through destroy-instance ; destroys an imagebuffer object, releasing properly the associated memory resources
    Example (destroy-instance buffer)

    Updated 08/11/2008 Copyright © 2008 Walther Waeles
    SourceForge.net Logo