Draw lines using Direct2D without scaling the line thickness

Viewed 138

I've just switched to using Direct2D on my project. I'm using C++Builder XE2 with the VCL windows platform and I am using the wrapper Direct2D that came with XE2. I'm able to draw Rectangle, Line, Ellipse and all with scale, rotation, translation. All works great. The only issue I have now is that the Line thickness is scaled to my Scale factor. I'd like to keep the line thickness to what ever I specify regardless the Scale factor. The only solution I found from long long googling is to set D2D1_STROKE_TRANSFORM_TYPE to D2D1_STROKE_TRANSFORM_TYPE_FIXED.

How and where do I set this? And is there another way to do this?

Thanks Bill

0 Answers
Related