Hi,
can the TBitmapCanvas be declared public (I mean before "implementation") in the unit Graphics?
I'm trying to replace the TMetafile & TMetafileCanvas in some GraphPrinters units.
Thanks
Salvatore

Mailing lists / lazarus / 2008-12
11 messages · 7 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
can the TBitmapCanvas be declared public (I mean before "implementation") in the unit Graphics?
I'm trying to replace the TMetafile & TMetafileCanvas in some GraphPrinters units.
Thanks
Salvatore
Coppola Ing. Salvatore wroteHi, can the TBitmapCanvas be declared public (I mean before "implementation") in the unit Graphics?
I assume is NOT!
Coppola Ing. Salvatore ?????:
No, assume silence as nobody remember why it is so and nobody have time to look :(
Best regards,
Paul Ishenin.
I don't know anything about that class, but if you describe better what you are trying to do I may suggest an alternative.
Coppola Ing. Salvatore ?????: No, assume silence as nobody remember why it is so and…
Zitat von Paul Ishenin :
Because there was never a reason to make it public. Private things can be changed easier.
Why should it be made public?
Mattias
There are some Printer Preview such as PagePrinter based on Windows TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and TMetafileCanvas with TBitmapCanvas with some little change they can works under Linux and other OS to.
thanks all
Salvatore
Coppola Ing. Salvatore ?????: No, assume silence as nobody remember why it is so and…
IMO there exist reasons why the Canvas should be available only on demand, controlled inside the component.
DoDi
There are some Printer Preview such as PagePrinter based on Windows TMetafile and…
An embedded and charset-unspecified text was scrubbed... Name: not available
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081210/b2cbe948/attachment.pl
Yes I know, for instance there is the Lu?s Rodrigues TMetafile (mymetafilepkg.lpk) in the CCR
that wrap the Windows EnhMetafile API (so Windows specific) and some extra lazarus packages like PagePrinter uses Metafiles. Replacing Metafile with Bitmap can remove this MS Windows API dependences. To do this, TBitmapCanvas, should be visible in PagePrinter units by mean Graphics unit.
Salvatore
There are some Printer Preview such as PagePrinter based on Windows TMetafile and…
I do understand that a TMetafile needs a TMetafileCanvas and that it is therefore declared, however I don't see why a TBitmapCanvas is needed public when you have TBitmap.
Marc
2008/12/12 Marc Weustink
OK I will try to understand better TBitmap
Thanks
Salvatore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081212/b258e2a4/attachment.html