Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and save part of a picture
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00496599
Message ID:
00496694
Vues:
12
>>You can't access the pixel run directly from the VFP image control, however there are ActiveX (OCX) controls that allow you to do this. Try the LeadTools OCX control (www.leadtools.com) as it has support for doing this. The control isn't the cheapest but it certainly is the most feature rich and offers support for a vast number of raster formats.
>>
>>The solutions open to you using the LeadTools OCX are using rectangle or freehand selection invoke the Copy method and paste it into another instance of the control, as an alternative you could just crop the image.
>
>I was giving this thread some thought, and just found and interesting use for George Tasker's wonderful Obj2BMP utility. I put an image control on the form, and placed a transparent shape with no border over part of the picture. Then I ran Obj2BMP and captured the shape control into BMP file. Naturally, there was exactly that part of picture in the BMP. So, with proper positioning and resizing code for the shape and Obj2BMP utility you can capture parts of the picture to BMP.
>I think such a transparent shape and code from George's utility could be combined into a new utility which does the job.
>
>Just playing around... :)

That's one thing you can do. I've been playing around with an idea utilizing the BMPMaker code in conjunction with a form to create bitmaps that can be used by the Picture Clip control (so that it can be used as a source for an ImageList). Kind of the reverse of this.< s >
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform