Search found 4 matches

by kronik
2012-02-08T21:24:50-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 28751

Re: ConvertImageCommand() and Obj-C

I did as you told me... but nothing changed int rotation = 0; int w1 = (int)img.size.width; int h1 = (int)img.size.height; w1 = (w1%2) == 0?w1:w1+1; h1 = (h1%2) == 0?h1:h1+1; int cx = (int)floor((img.size.width + 1) / 2.0); int cy = (int)floor((img.size.height + 1) / 2.0); int d1 = MAX(w1, h1); floa...
by kronik
2012-02-07T21:32:56-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 28751

Re: ConvertImageCommand() and Obj-C

Thanks for your explanation! Here is my conversion result: MagickWandGenesis(); magick_wand = NewMagickWand(); UIImage *img = [UIImage imageNamed:@"test.png"]; [imageViewButton setImage:img forState:UIControlStateNormal]; NSData * dataObject = UIImagePNGRepresentation(img);//UIImageJPEGRep...
by kronik
2012-02-07T19:44:32-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 28751

Re: ConvertImageCommand() and Obj-C

Great! But it's still unclear moments: 1. -size parameter "${w1}x1". If value of w1 is 480 (for example) could this be translated to "480x1"? 2. zz=$fd1*(i-$cx)*$cosang. Should I define "i"? 3. Should I pass string located in parenthesis as one argument ( $infile -alpha...
by kronik
2012-02-07T01:50:36-07:00
Forum: MagickWand
Topic: ConvertImageCommand() and Obj-C
Replies: 7
Views: 28751

ConvertImageCommand() and Obj-C

I tried to convert cameradeblur sample by myself but stuck on "convert" to "ConvertImageCommand" translation of: w1=`convert xc: -format "%[fx:($width%2)==0?$width:($width+1)]" info:` h1=`convert xc: -format "%[fx:($height%2)==0?$height:($height+1)]" info:` cx...