[Lazarus] TextHeight in Console App
graeme at geldenhuys.co.uk
Tue May 14 17:35:22 CEST 2013
On 2013-05-14 15:51, Edilson Vieira wrote:
> You mean use FPImage instead of Graphics?
> In this case what should I use instead of TBitmap (defined in Graphics
> unit) ?
Yes, take a look at the code in <fpc>/packages/fcl-image/src/ and in
more detail the fpimage, fpimgcanv units. You will probably replace
TBitmap with TFPImageCanvas.
Also take a look at the <fpc>/packages/fcl-image/examples/ files for
example of usage.
You can also use something like AggPas which is much faster than
FPImage, and has a lot more graphics capabilities. It is also
independent of GUI toolkits, so you can use it in a Console of CGI app
for example. The API is a little harder to learn than FPImage though.
- Graeme -
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
More information about the Lazarus