![]() If you need access to the specifics of the graphic class itself, you can refer to the picture's Graphic property. (The only standard graphic that has a canvas is TBitmap.) Normally, when dealing with a picture, you work only with the parts of the graphic class exposed through TPicture. Keep in mind that a picture class always has a graphic, and a graphic might have a canvas. ![]() For example, the image control has a property called Picture, of type TPicture, enabling the control to display images from many kinds of graphics. That is, an item of type TPicture can contain a bitmap, an icon, a metafile, or a user-defined graphic type, and an application can access them all in the same way through the picture class. This means that if you use Windows and have a 4K or similar high-res display, the IDE will render crisply and clearly on your. The new high DPI image list controls ( TImageCollection and TVirtualImageList) provide adaptive DPI-aware high-quality automatically scaling images, fully backwards compatible with traditional TImageLists, including importing old-style bitmaps and lists. New in RAD Studio 11: High DPI IDE and Form Designing There is a very exciting improvement in Delphi, C++Builder and RAD Studio 11.0 Alexandria: the IDE now fully supports high DPI scaling on high-resolution screens. A picture is a container for a graphic, meaning it could contain any of the graphic classes. And at 800: You can see that images remain crisp and clear.By defining a minimal standard interface for all graphics, TGraphic provides a simple mechanism for applications to use different kinds of graphics easily. You can then draw a red rectangle on top of. AR : FR : Comment personnaliser l'affichage de TrackBarEN : How to customize the TrackBar displayES : Cmo personalizar la visuali. That is all a TImage really does (it holds a TGraphic that is drawn onto its Canvas when painted). Load your image into an appropriate TGraphic class ( TBitmap, TIcon, TPNGImage, etc) and then draw it onto the TPaintBox in its OnPaint event. You can also define your own graphic classes. I would suggest using a TPaintBox instead of a TImage. ![]() Delphi defines classes TBitmap, TIcon, and TMetafile, all descended from a generic TGraphic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |