Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create some graphic in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00545889
Message ID:
00545991
Vues:
12
>I need to create some graphic in VFP and save it to disk as GIF image.
>It should have next features:
>Ability to draw point, line, oval, rectangle with different pen style.
>Ability to fill some region with different brush style.

Programtticaly? You should be able to do that all by creating a form. Try this:
oForm =CREATEOBJECT('form')
oForm.BackColor=16777215
oForm.BorderStyle= 0
oForm.TitleBar = 0
oForm.TitleBar = 0
oForm.AddObject('shape1', 'shape')
oForm.Shape1.Height = 100
oForm.Shape1.Width = 100
oForm.shape1.Curvature = 99
oForm.shape1.FillColor=RGB(255, 0, 0)
oForm.shape1.FillStyle = 0
oForm.shape1.Visible = .t.
oForm.Show(1)
Forms also have Oval, Box, and Line methods to, plus teh FillStyle property should give you different brush types, depending on what you're looking form.

After you got your objects all pretty and nice, you could see if George Taskers's ObjtoBMP will create a bitmap of your form. From there, you shoudl be able to find a way to convert it to any picture you want, and walla. Is that what you're looking for?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform