2010-11-30 6 views

답변

2

나는 MagickMergeImageLayers 새로운 지팡이를 반환 놓친 ... 그것을 발견했습니다! 따라서 코드는 다음과 같습니다 :

if(current_wand && IsMagickWand(current_wand)){ 
    status=MagickReadImage(current_wand, "test.png"); 
    if (status == MagickFalse) { 
     ThrowWandException(current_wand); 
    } 
    PixelWand *color = NewPixelWand(); 
    PixelSetColor(color, "red"); 
    MagickSetImageBackgroundColor(current_wand, color); 
    MagickWand *newwand = MagickMergeImageLayers(current_wand, FlattenLayer); 
    MagickWriteImage(newwand, "test.jpg"); 
    DestroyMagickWand(newwand); 
} 
+0

다음과 같은 질문으로 도움을 줄 수 있습니까? http://stackoverflow.com/questions/7480812/iphone-imagemagick-library-converting-from-batch-file-script-to-objective-c-usi – fuzz

관련 문제