![]() ![]() lazcanvas: TLazCanvas is a non-native Canvas which can draw to an image in a TLazIntfImage.intfgraphics: TLazIntfImage is an image which attaches itself to a TRawImage and takes care of converting between TFPColor and the real pixel format of the TRawImage.graphtype: TRawImage is the storage and description of a memory area which contains an image.In Windows it is very fast because Windows allows creating a locally allocated image which can receive drawings from a Windows Canvas.īesides these there are also non-native drawing classes located in the units: TRasterImage (usually used via its descendant TBitmap) is a memory area reserved for drawing graphics, but it is created for maximum compatibility with the native Canvas and therefore in LCL-Gtk2 in X11 it is located in the X11 server, which makes pixel access via the Pixels property extremely slow. TFont, TBrush and TPen describe how the drawing of various operations will be executed in the Canvas. It cannot exist alone and must either be attached to something visible (or at least which may possibly be visible), such as a visual control descending from TControl, or be attached to an off-screen buffer from a TRasterImage descendent (TBitmap is the most commonly used). TCanvas is a class capable of executing drawings. These classes are: TBitmap, TCanvas, TFont, TBrush, TPen, TPortableNetworkGraphic, etc. The native classes are mostly located in the unit Graphics of the LCL. Native graphics classes are the most traditional way of drawing graphics in the LCL and are also the most important one, while the non-native classes are complementary, but also very important. The Lazarus Component Library (LCL) provides two kinds of drawing class: Native classes and non-native classes. ![]() Introduction to the Graphics model of the LCL Graphics libraries - here you can see the main graphic libraries you can use to develop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |