Hi,
I still haven't a clear picture (pun intended) in my mind of the difference between an image and a pixmap and would welcome a simple explanation.
My latest encounter involved trying to get a masked sector image from a larger image. My mask is a black sector on a white background. Is this code the best way to do this?
Thanks ... Peter
I still haven't a clear picture (pun intended) in my mind of the difference between an image and a pixmap and would welcome a simple explanation.
My latest encounter involved trying to get a masked sector image from a larger image. My mask is a black sector on a white background. Is this code the best way to do this?
Graphics 800,600 img:TImage=LoadImage("img.bmp") mask:TImage=LoadImage("mask.bmp") DrawImage img,0,0 DrawImage mask,0,0 px:TPixmap=GrabPixmap(0,0,128,128) px=MaskPixmap(px,255,255,255) img1:TImage=LoadImage(px) DrawImage img1,200,200 Flip WaitKey End
Thanks ... Peter

