Each Raised Panel for Icon Image Display is 80x80 pixels.
Some fancy code to center the icon images since image size can vary.
BOOL retval = FALSE;
UWORD srce_x,srce_y;
UWORD center_x,center_y;
int width,height,depth;
RGBImage *in_pic = NULL;
struct BitMapHeader *bmhd;
Printf ("ReadBmhd_by_datatype");
bmhd = readbmhd_by_datatype(srcename);
width = bmhd->bmh_Width;
height = bmhd->bmh_Height;
depth = bmhd->bmh_Depth;
/* Centered = width,height/2 */
center_x = ((80-width)/2);
center_y = ((80-height)/2);
/* Get RasterPort coordinates */
if(stricmp(position,"left") == 0)
{
/* Top left of First Raised Panel */
srce_x = 26 + center_x;
srce_y = 25 + topoffset + center_y;
}
if(stricmp(position,"right") == 0)
{
/* Top left of Second Raised Panel */
srce_x = 151 + center_x;
srce_y = 25 + topoffset + center_y;
}