Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From Photoshop to Bridge
Message
From
18/05/2016 10:05:20
 
 
To
16/05/2016 13:43:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01636402
Message ID:
01636575
Views:
69
Hi Yousfi,

thanks for the update. And thanks for sharing the work you've been doing on so many projects.

Hank

>Yes imageMagick is a com object application.after install (mandatory),there is a dll named:
>ImageMagickObject.dll
>reigister it if not registered.
>
>to create im com codes this is a basic example:
>
>local m.yrep
>m.yrep=addbs(justpath(sys(16,1)))   &&start folder
>if !directory (m.yrep+"images")  &&images created  folder
>md (m.yrep+"images")
>endi
>
>local m.xpict,imgObj
>m.xpict=getpict()
>if empty(m.xpict)
>return .f.
>endi
>
>imgObj = CreateObject("ImageMagickObject.MagickImage.1")
>= imgObj.Convert(xpict, "-resize", "100x100!", "images\thumb.png")
> = imgObj.Convert(xpict, "-resize", "200x200!", "-type", "Grayscale", "-depth", "8", "images\thumb_grayscale.png")
> = imgObj.Convert(xpict,"-negate", "-resize", "300x250!",  "images\thumb_negate.png")
> = imgObj.montage("-label","myShadow",xpict,':','-background','none','-geometry','+15+15','-shadow',  'images\shadow.png')
> = imgObj.montage (xpict,"-background","Gold","-flatten","-frame","6","-geometry","'64x64+10+10>'","-size","16x16","-bordercolor","LimeGreen","-background","SeaGreen","images\ymontage_texture_border.gif")
> = imgObj.convert(xpict,":","-raise","12","images\yraise.gif")
>imgObj=null
>
>
>to work with images,can receive all IM command lines as
>-convert
>-montage
>-composite
>..........
>it can works with command lines.
>see the 5 images created in photo attached.
>see the imageMagick com object embed in vfp object browser (photo)
>
>can visit http://www.imagemagick.org/script/index.php
>examples: http://www.imagemagick.org/Usage/
>
>Infortunatly there is no great backward compatibility between versions.i worked with old ImageMagick-6.8.8-Q16 version ( must adapt all codes shipped in the zip pointed above to make it working with recent versions).
>
>update: i downloaded the latest version ImageMagick-7.0.1-Q16 and i dont found the ImageMagickObject.dll as in version 6.8.8 Q16.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform