Greetings All, I'm in trouble with CustomPdfViewMBS and PDFPageMBS, but it might be my misunderstanding ;-(
I'm using a CustomPdfViewMBS to display a pdf. I draw a picture in AfterDrawpagePost event, using a NSImageMBS : // p is RS Pic previously computed Dim ThePicToDraw as New NSImageMBS Call ThePicToDraw.initWithPicture( p, p.mask ) if p.Transparent =1 then graphics.drawInRect ( ThePicToDraw , p3.X, p3.Y, p3.Width, p3.Height, 0, 0, 0, 0, graphics.NSCompositePlusDarker, 1.0 ) // Transparent else graphics.drawInRect ( ThePicToDraw , p3.X, p3.Y, p3.Width, p3.Height, 0, 0, 0, 0, graphics.NSCompositeSourceOver, 1.0 ) // Opaque end Now, when I save the pdf, I use PDFPageMBS class and in DrawRect event , I do : Dim ThePicToDraw as New NSImageMBS Call ThePicToDraw.initWithPicture( p, p.mask ) if p.Transparent =1 then g.drawInRect ( ThePicToDraw , TheRect.left, TheRect.top, TheRect.Width, TheRect.Height, 0, 0, 0, 0, g.NSCompositePlusDarker , 1.0 ) //Transparent else g.drawInRect ( ThePicToDraw , TheRect.left, TheRect.top, TheRect.Width, TheRect.Height, 0, 0, 0, 0, g.NSCompositeSourceOver , 1 ) //Opaque end p and ThePicToDraw are just the same, but I can't get a transparent mode when saving.... Am I missing something ? I'm using RS 2012r.1., MBS 12.4, tested on 10.6.8 and 10.8.... Any thoughs ? Thanks, Fred _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
