bitmap

Description Properties Methods Constants Examples See also






Description


The bitmap object handles bitmap graphics.



Properties


c = pencolor;
pencolor = c;




w = penwidth;
penwidth = w;




m = penmode;
penmode = m;




s = penstyle;
penstyle = s;




c = brushcolor;
brushcolor = c;




s = brushstyle;
brushstyle = s;




c = fontcolor;
fontcolor = c;




n = fontname;
fontname = n;




s = fontsize;
fontsize = s;




s = fontstyle;
fontstyle = s;




w = width;
width = w;




h = height;
height = h;




f = pixelformat;
pixelformat = f;




t = transparent;
transparent = t;




c = transparentcolor;
transparentcolor = c;




m = copymode;
copymode = m;






Methods


c = pixelcolor(x, y);
pixelcolor(x, y) = c;




moveto(x, y);



lineto(x, y);



ellipse(x1, y1, x2, y2);



rectangle(x1, y1, x2, y2);



w = textwidth(text);



h = textheight(text);



textout(x, y, text);



drawto(bitmap = b, x = xx, y = yy);



savetofile(filename);



loadfromfile(filename);





Constants




Examples




See also





(C) 2008-2010 Lorin Milescu. Last modified: 08-29-2010