Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX and PenSize
Message
From
27/02/2008 10:09:19
 
 
To
27/02/2008 09:42:24
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01296824
Message ID:
01296839
Views:
7
>Dear All,
>
>I have impression that when drawing ordinary lines with GdiPlusX, Pen object
>could be little bit inaccurate as for actual line size it produces;
>
>
>.
>.
>*We are talking solid brush / ordinary lines
>
>oMyPen = .Pen.New(.Color.Black , 0)   && 0,1,2,3,4,5,6...
>oGfx.DrawLine(oMyPen,x,y...)
>
>.
>.
>
>
>First two pen sizes 0 and 1 produce identical results which I believe are both size 0 (hair line) . From size 1 upward all sizes seem to be in actuallity nPenSize-1.
>
>Line weight distribution looks like this;
>0 = 0
>But from 1
>1-1 = 0
>2-1 = 1
>3-1 = 2
>
>So when you call size 2 you actually get 1, when choosing size 3 you get 2 and so for. Is there any way to examine / verify this 'naked-eye' impression ?
>
>
>
>TIA
>Sergio


Sergio,

I don't have VFP to test it right now, but you could examine by yourself, making sure that the output will be a PNG or BMP file. DONT use JPEG, because the image will probably be somehow disformed...

Also, make sure that the smoothing mode is set to "lowQuality", (i don't remember the property name), NOT using AntiAlias

Then, open theat image in MSPAINT, and Zoom to see in 8X. This way, you'll be sure how many pixels it is drawing.

Capiche ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform