pentshp.cpp File Reference

Go to the source code of this file.

Functions

static void query (void)
static void run (const gchar *name, gint nparams, const GimpParam *param, gint *nreturn_vals, GimpParam **return_vals)
static gint32 load_image (IDataSource *ids, const gchar *filename)
static void load_frame (Shape *s, uint32 framenum, GimpDrawable *drawable)
static void paintFrame (Shape *s, uint32 framenum, void *pixels, uint32 pitch, sint32 x, sint32 y, GimpPixelRgn *clip_window)
static gint32 save_image (gchar *filename, gint32 image_ID, gint32 drawable_ID, gint32 orig_image_ID)
 MAIN () static void query(void)

Variables

GimpPlugInInfo PLUG_IN_INFO


Function Documentation

static void load_frame ( Shape s,
uint32  framenum,
GimpDrawable *  drawable 
) [static]

Definition at line 268 of file pentshp.cpp.

References frame, Shape::getFrame(), paintFrame(), ShapeFrame::xoff, and ShapeFrame::yoff.

Referenced by load_image().

static gint32 load_image ( IDataSource ids,
const gchar *  filename 
) [static]

Definition at line 187 of file pentshp.cpp.

References Shape::DetectShapeFormat(), frame, Shape::frameCount(), Shape::getFrame(), IDataSource::getSize(), ShapeFrame::height, height, load_frame(), loadPalette(), pal, read_format, Shape::setPalette(), ShapeFrame::width, width, ShapeFrame::xoff, and ShapeFrame::yoff.

Referenced by run().

MAIN (  ) 

Definition at line 64 of file pentshp.cpp.

static void paintFrame ( Shape s,
uint32  framenum,
void *  pixels,
uint32  pitch,
sint32  x,
sint32  y,
GimpPixelRgn *  clip_window 
) [static]

Definition at line 290 of file pentshp.cpp.

Referenced by load_frame().

static void query ( void   )  [static]

static void run ( const gchar *  name,
gint  nparams,
const GimpParam *  param,
gint *  nreturn_vals,
GimpParam **  return_vals 
) [static]

Definition at line 119 of file pentshp.cpp.

References if(), load_image(), FileSystem::ReadFile(), and save_image().

static gint32 save_image ( gchar *  filename,
gint32  image_ID,
gint32  drawable_ID,
gint32  orig_image_ID 
) [static]

Definition at line 306 of file pentshp.cpp.

Referenced by run().


Variable Documentation

GimpPlugInInfo PLUG_IN_INFO

Initial value:

{
        NULL,  
        NULL,  
        query, 
        run,   
}

Definition at line 56 of file pentshp.cpp.


Generated on Fri Jul 27 22:28:08 2007 for pentagram by  doxygen 1.4.7