Retrieving coordinates from bitmap...
Posted: 16 Nov 2011, 22:44
Hi,
the topic is a little bit hard to understand. Didn't know how tro explain my question in short words..
I need to do an animation on the cad- file (DXF). If i do this with the internal 'AddLine' usw. the whole drawing will be completely refreshed and the picture is flickering.
My idea is to assign the cad- file to a bitmap where i can do double- buffering and all the necessary stuff for a smooth animation.
My problem:
I like to attach the loaded cad- file to a bitmap- object using stretchdraw.
Now i need to know the bitmap- coordinates (If i want to draw anytthing using the canvas- methods) where the cad- internal things are located.
Example: I need a line on Cad- position X,Y -> What bitmap- coordinates i have to draw to?
Can you give me short example of getting the coordinates (Have tried some documnted methods, but always got weird coordinates)?
Regards Cliff
the topic is a little bit hard to understand. Didn't know how tro explain my question in short words..

I need to do an animation on the cad- file (DXF). If i do this with the internal 'AddLine' usw. the whole drawing will be completely refreshed and the picture is flickering.
My idea is to assign the cad- file to a bitmap where i can do double- buffering and all the necessary stuff for a smooth animation.
My problem:
I like to attach the loaded cad- file to a bitmap- object using stretchdraw.
Now i need to know the bitmap- coordinates (If i want to draw anytthing using the canvas- methods) where the cad- internal things are located.
Example: I need a line on Cad- position X,Y -> What bitmap- coordinates i have to draw to?
Can you give me short example of getting the coordinates (Have tried some documnted methods, but always got weird coordinates)?
Regards Cliff