Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code for Image Browser
Message
 
To
14/09/2015 12:25:01
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01624568
Message ID:
01624594
Views:
58
>>>>>>Hi, I am look for code or an application that will funtion as (a) an image browser of jpgs and (b) allow me to draw on these files and save these annotations. Can anyone reccomend something?
>>>>>>thank you,
>>>>>>Steve
>>>>>
>>>>>Hi,
>>>>>GDIPlusx is your friend. May I suggest you to read Cesar Chalom's blog about the use of this? http://weblogs.foxite.com/vfpimaging/
>>>>>Regads,
>>>>>Koen
>>>>
>>>>I am reading and trying out GDIplusx. I was just wondering if anyone had created an image browser application, one that lets the use choose photos and then draw on and annotate them, and save the results. VFP Paint (http://weblogs.foxite.com/vfpimaging/2007/10/17/vfp-paint-revisited/) allows drawing and painting. It can be download here: http://weblogs.foxite.com/files/vfpimaging/vfppaint/vfppaint.zip. But I see that some of the drawing features are funny that is: rectangles don't always appear in full until you are done drawing them.
>>>>Thank you,
>>>>Steve
>>>
>>>Steve,
>>>
>>>The class VFPpaint, is not the class you are looking for. Maybe if you explore other classes made by Cesar, to be downloaded at http://vfpx.codeplex.com/wikipage?title=GDIPlusX you will find utilities to facilitate your goal.
>>>Also worthwhile to visit is Yousfi Benameur at http://yousfi.over-blog.com/ this man is showing you what can be done with GDIPlusX.
>>>--
>>>The problem you have encountered with drawing retangles, I am afraid I cannot reproduce.
>>>
>>>Regards,
>>>
>>>Koen
>>
>>Thank you. I am reading articles by Cesar and Yousfi Benameur. They are very good. I also wanted to ask: When I have a form with a number of buttons or other objects in it, including some photos --- How can I know which of the buttons or objects has been clicked on so that I can implement a zoom in, or know which button has been clicked on?
>>Thanks again,
>>Steve
>
>Steve,
>
>You cannot, the button knows :)
>in your click event of your button you have to program which image you want to do something with. I dont assume you have only one (1) button for all of your images?
>Rgds,
>Koen

Koen, I have years of programming with FoxPro but not with forms. So this is new. My form is going is have a number of things on it, including some buttons, and a place where a photo will show. I was just wondering how the form and its things (buttons, etc) will know when I click on a given thing or object. Also, as I read through Cesar and Yousfi Benameur, I see examples where they use GDI+ to programmatically draw art (lines, rectangles, etc), but not (so far) examples where they allow a user to click on a button and then start to draw on a photo. This would mean more buttons and drawing objects. Each would have to know when it had been clicked on, etc. VFPpaint had those kinds of tools but it's the wrong way to go, like you indicated.
Thank you, Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform