Xojo Conferences
XDCMay2019MiamiUSA

Re: [MBS] CustomPdfViewMBS and PDFPageMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] OpenAsPNGMBS and SaveAsPNGMBS
Next thread: [MBS] [ANN] 12.5pr1


[MBS] [ANN] 12.5pr1   -   Christian Schmitz
  Re: [MBS] CustomPdfViewMBS and PDFPageMBS   -   Christian Schmitz
   Re: [MBS] CustomPdfViewMBS and PDFPageMBS   -   fqd
    [MBS] CustomPdfViewMBS and PDFPageMBS   -   fqd

Re: [MBS] CustomPdfViewMBS and PDFPageMBS
Date: 09.10.12 14:00 (Tue, 9 Oct 2012 15:00:29 +0200)
From: Christian Schmitz

Am 09.10.2012 um 10:07 schrieb fqd <<email address removed>>:

> Greetings All,
>
> I'm in trouble with CustomPdfViewMBS and PDFPageMBS, but it might be my
> misunderstanding ;-(
> I'm using RS 2012r.1., MBS 12.4, tested on 10.6.8 and 10.8....
>
> Any thoughs ?

Can you email off list a test project?

Greetings
Christian

Re: [MBS] CustomPdfViewMBS and PDFPageMBS
Date: 09.10.12 15:04 (Tue, 09 Oct 2012 16:04:59 +0200)
From: fqd
Le 09/10/12 15:00, Christian Schmitz a écrit :
> Am 09.10.2012 um 10:07 schrieb fqd <<email address removed>>:
>
>> Greetings All,
>>
>> I'm in trouble with CustomPdfViewMBS and PDFPageMBS, but it might be my
>> misunderstanding ;-(
>> I'm using RS 2012r.1., MBS 12.4, tested on 10.6.8 and 10.8....
>>
>> Any thoughs ?
>
> Can you email off list a test project?
>
> Greetings
> Christian
>
Done that, Chrsitian.

Thanks,
Fred
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] CustomPdfViewMBS and PDFPageMBS
Date: 09.10.12 09:07 (Tue, 09 Oct 2012 10:07:54 +0200)
From: fqd
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 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 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 address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info