Sign in Join

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

Mailing lists / lazarus / 2012-03

Using Graphics unit in a service application fails to build

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Andrew Brunner

I'm running into a problem when building a service application. When I include a unit that uses graphics for 2 TPicture instances for resizing.

Fatal: Can't find unit Graphics used by dbmAvatars

Is there a package I can add to give me functionality? Or use a similar component w/o lcl?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120315/fb79c3c8/attachment.html>

Reply by email

Mattias Gaertner
to Andrew Brunner
Show quoted text 7 lines
I'm running into a problem when building a service application. When I include a unit that uses graphics for 2 TPicture instances for resizing. Fatal: Can't find unit Graphics used by dbmAvatars Is there a package I can add to give me functionality? Or use a similar component w/o lcl?

Yes, and it comes already with fpc. It's name is fpimage. The LCL uses it too.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner

Besides the already mentioned fpimage, there are other options. The nogui widgetset probably wouldn't work since it has no support for graphics handles, but one could create a nogui backend to LCL-CustomDrawn and automatically it would have support for TBitmap, TPicture and TCanvas, since they are implemented in a cross-platform and backend-independent way.

Felipe Monteiro de Carvalho

Reply by email