iphone中的波普艺术效果

iphone中的波普艺术效果,iphone,Iphone,提前谢谢 我想在图像上获得波普艺术效果,波普艺术效果意味着在photoshop中,我们将使用objective c在iphone中获得4张具有相同照片不同效果的照片。事实上,我不知道这是否可能,如果可能的话,如何进行。如果有人知道,请帮助我。是的,例如,在苹果的框架下,算法应该很容易编写,但很难调整: 伪代码: 至少,他接受了一些……你设法做到了吗?谢谢你的回复。但我不知道如何实施它。你能再澄清一下吗。 image = loadImageFromFile("your image file");

提前谢谢


我想在图像上获得波普艺术效果,波普艺术效果意味着在photoshop中,我们将使用objective c在iphone中获得4张具有相同照片不同效果的照片。事实上,我不知道这是否可能,如果可能的话,如何进行。如果有人知道,请帮助我。

是的,例如,在苹果的框架下,算法应该很容易编写,但很难调整:

伪代码:


至少,他接受了一些……你设法做到了吗?谢谢你的回复。但我不知道如何实施它。你能再澄清一下吗。
image = loadImageFromFile("your image file");
popArt = createImage(/*width:*/ image.width * 2, 
                     /*height:*/ image.height * 2);

subdivisions = [ [ 0, image.width, 0, image.height ],
                 [ image.width, image.width, 0, image.height ],
                 [ 0, image.width, image.height, image.height ],
                 [ image.width, image.width,  image.height, image.height ] ];

blendFunctions = [ boost_red, boost_blue, boost_yellow, boost_green ];

for(i=0;i<4;++i) {
   fillRectangle(rectangle[i], /*dest. image:*/popArt, 
                            /*source image:*/image,
                            blendFunctions[i]);
}