Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

TBitmapCanvas public

11 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Coppola Ing. Salvatore

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

Reply by email

Coppola Ing. Salvatore
to Coppola Ing. Salvatore
Coppola Ing. Salvatore wrote
Hi, can the TBitmapCanvas be declared public (I mean before "implementation") in the unit Graphics?

I assume is NOT!

Show quoted text 6 lines
I'm trying to replace the TMetafile & TMetafileCanvas in some GraphPrinters units. Thanks Salvatore

Reply by email

Paul Ishenin
to Coppola Ing. Salvatore

Coppola Ing. Salvatore ?????:

Show quoted text 9 lines
Coppola Ing. Salvatore wrote: > Hi, > can the TBitmapCanvas be declared public (I mean before > "implementation") in the unit Graphics? > I assume is NOT!

No, assume silence as nobody remember why it is so and nobody have time to look :(

Best regards,
Paul Ishenin.

Reply by email

Mattias Gärtner
to Paul Ishenin: Coppola Ing. Salvatore ?????: No, assume silence as nobody remember why it is so and…

Zitat von Paul Ishenin :

Show quoted text 14 lines
Coppola Ing. Salvatore ??????????: > Coppola Ing. Salvatore wrote: > >> Hi, >> can the TBitmapCanvas be declared public (I mean before >> "implementation") in the unit Graphics? >> > > I assume is NOT! > No, assume silence as nobody remember why it is so and nobody have time to look :(

Because there was never a reason to make it public. Private things can be changed easier.
Why should it be made public?

Mattias

Reply by email

Coppola Ing. Salvatore
to Mattias Gärtner
Mattias G?rtner wrote 25 lines
Zitat von Paul Ishenin : > Coppola Ing. Salvatore ??????????: > >> Coppola Ing. Salvatore wrote: >> >> >>> Hi, >>> can the TBitmapCanvas be declared public (I mean before >>> "implementation") in the unit Graphics? >>> >>> >> I assume is NOT! >> >> > No, assume silence as nobody remember why it is so and nobody have time > to look :( > Because there was never a reason to make it public. Private things can be changed easier. Why should it be made public?

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

Show quoted text 8 lines
Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Hans-Peter Diettrich
to Paul Ishenin: Coppola Ing. Salvatore ?????: No, assume silence as nobody remember why it is so and…
Show quoted text 7 lines
>> can the TBitmapCanvas be declared public (I mean before >> "implementation") in the unit Graphics? >> > I assume is NOT! > No, assume silence as nobody remember why it is so and nobody have time to look :(

IMO there exist reasons why the Canvas should be available only on demand, controlled inside the component.

DoDi

Reply by email

Coppola Ing. Salvatore
to Mattias Gärtner
Mattias G?rtner wrote 20 lines
Zitat von "Coppola Ing. Salvatore" : > [...] > >>>>> can the TBitmapCanvas be declared public (I mean before >>>>> "implementation") in the unit Graphics? >>>>> > [...] > > 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. > What TMetafile do you mean? There is none in the LCL.

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

Show quoted text 8 lines
Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Marc Weustink
to Coppola Ing. Salvatore: There are some Printer Preview such as PagePrinter based on Windows TMetafile and…
Coppola Ing. Salvatore wrote 30 lines
Mattias G?rtner wrote: > Zitat von Paul Ishenin : > > >> Coppola Ing. Salvatore ??????????: >> >>> Coppola Ing. Salvatore wrote: >>> >>> >>>> Hi, >>>> can the TBitmapCanvas be declared public (I mean before >>>> "implementation") in the unit Graphics? >>>> >>>> >>> I assume is NOT! >>> >>> >> No, assume silence as nobody remember why it is so and nobody have time >> to look :( >> > Because there was never a reason to make it public. Private things can be > changed easier. > Why should it be made public? > > 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.

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

Reply by email

Salvatore Coppola
to Marc Weustink

2008/12/12 Marc Weustink

Show quoted text 37 lines
Coppola Ing. Salvatore wrote: > Mattias G?rtner wrote: >> Zitat von Paul Ishenin : >> >> >>> Coppola Ing. Salvatore ??????????: >>> >>>> Coppola Ing. Salvatore wrote: >>>> >>>> >>>>> Hi, >>>>> can the TBitmapCanvas be declared public (I mean before >>>>> "implementation") in the unit Graphics? >>>>> >>>>> >>>> I assume is NOT! >>>> >>>> >>> No, assume silence as nobody remember why it is so and nobody have time >>> to look :( >>> >> Because there was never a reason to make it public. Private things can be >> changed easier. >> Why should it be made public? >> >> > > 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. 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.

OK I will try to understand better TBitmap
Thanks
Salvatore

Show quoted text 7 lines
Marc _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081212/b258e2a4/attachment.html

Reply by email