Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GdiPlusX and PenSize
Message
De
27/02/2008 10:09:19
 
 
À
27/02/2008 09:42:24
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01296824
Message ID:
01296839
Vues:
8
>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 ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform