Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create some graphic in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00545889
Message ID:
00546001
Views:
18
Hi Mike,

Thanks for your reply but where can find ObjtoBMP ?

Doron


>>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform