Hi, how do I draw an icon with a mask using the following code directly from the documentation:
Function GetIconImage(i as IconMBS, w as integer, h as integer) As picture dim c as new CGPictureContextMBS(w,h) const DrawNormal=0 const DrawNoImage=2 const DrawNoMask=4 const DrawSelected=&h8000 i.DrawIconCGContext(c.Handle, 0,0,w,h,0,0, DrawNoMask,&c000000) c.Flush Return c.CopyPicture End Function DrawNoMask obviously draws without mask. But using DrawNormal doesn't show any change. The icon is a simple jpeg one. Using MBS 13.1, RealStudio 2011r4 and latest beta. Mac OS 10.8 and Cocoa. Mit freundlichen Grüßen/Regards Trixi Willius http://www.mothsoftware.com Mail Archiver X: The email archiving solution for professionals _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
