Answer the question
In order to leave comments, you need to log in
Is there an alternative to canvas for Delphi?
I am making a program for drawing and working with graphs, I am doing it in Delphi (yes, I know that it is old as the world and terrible, but apart from it I don’t know anything yet). And now ... I'm already tired of the standard Delphi canvas, 70% of all problems are with it. Maybe there is some third-party component (or something else) that behaves more adequately?
Threat There are a lot of problems, some have already been solved with crutches, but this is not at all what I would like to see. For example - the absolute impossibility to control the "overlay" of elements (what is drawn last is drawn on top of everything else), when the window is collapsed and expanded, the canvas miraculously removes all lines, while not touching other elements (shapes for example).
ZZY I wonder if there is anyone here who works with delphi?
Answer the question
In order to leave comments, you need to log in
what is drawn last is drawn on top of everything else
For example, use Direct-X, but this is probably from a cannon on sparrows.
Canvas is very shaky in any language, it is almost the lowest level of work with the image on the screen - that's why it behaves this way. But this is the fastest way to display images, other add-ons will only introduce a delay.
In general, in such cases, the canvas should be used only as the final output of the image, and the image itself should be formed and stored in memory separately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question