In my program I load and scale 20+ images at startup, and potentially dozens more later. I thought I had some nice working code, until I realized the ScaleBM is not being freed and I was losing 1.6MB of RAM.
Hi,
I just wonder if the te_Height returned by TextExtent() is really the size in pixels of a text displayed on a RastPort ?
Considering I have a window of 132 pixels height with a Text whose TextExtent.te_Height is 128.
If I move my text to y = 130, it should be vertically centered, no ?
In the following test, I try to vertically center a text of 128 pixels height in a 132 pixels height window (window height returned by window->Height and by SysMon).
Currently in my program I am loading a handful of images as BitMapObject. Is it possible to use NewDTObject() to "load" it and scale it, keeping the original in tact?
in my image viewer I need to blit a source bitmap S onto a destination one D, in a way that S transpares D that is behind (transparency effect). Say that neither S nor D necessarily have transparent areas.
How to achieve it? Hardware acceleration possible?
Given a certain display ID of an opened screen (SA_DisplayID), how to retrieve the name of its associated monitor?
For example having a display ID corresponding to the mode "Radeon 9250:800x600 ARGB32", I need to get "Radeon 9250".