Hey all, I've been hitting my head against this for several hours. I've tried many different methods, and done searches, but just cannot seem to get it to work.
All I want to do is draw a picture (a square — this will be a piece of a larger picture that the program pulls out) and give it a round rect mask.
I've put this code in a Canvas Paint event:
dim magPic as picture magPic=TrueWindow.BitmapForCaching(100,100) magPic.graphics.foreColor=&c2FACE200 magPic.graphics.fillRect(0,0,magPic.width,magPic.height) dim maskPic as picture maskPic=TrueWindow.BitmapForCaching(100,100) maskPic.graphics.foreColor=&c00000000 maskPic.graphics.FillRoundRect(0,0,100,100,20,20) magPic.ApplyMask maskPic g.drawPicture magPic,0,0
What I expect is a blue square with a round rect mask making it a blue round rect. What I get is a blue square with no mask, no matter what I try. I'm sure I'm overlooking something simple, but I'm at a loss. Anyone have any ideas?