3

CMYKをサポートするグラフィックライブラリ(JPGまたはTIF)を探しています。1つの大きな画像ファイルと1つの小さな画像ファイルを読み取ってから、最初に2番目に書き込む必要があります。出力もCMYKである必要があります(CMYK-> RGB変換なし)。ありますか?(C#/ C ++ / Javaまたはその他)

4

1 に答える 1

2

(免責事項、私はAtalasoftで働いています) Atalasoft dotImageは、CMYKとして画像の読み取りと書き込みを行い、CMYKスペースでオーバーレイ操作を実行します。

これを行うために必要なコードは次のとおりです。

public void OverlayCMYKOnCMYK(Stream bottomStm, Stream topStm, Point location, Steam outStm)
{
    using (AtalaImage bottom = new AtalaImage(bottomStm, null), top = new AtalaImage(topStm, null)) {
        // might want to check that both bottom and top have the same PixelFormat
        // OverlayCommand will silently do conversions if they don't match.            
        OverlayCommand overlay = new OverlayCommand(top, location);
        overlay.Apply(bottom);
        bottom.Save(outStm, new TiffEncoder(), null);
   }
}
于 2010-10-27T19:26:14.963 に答える