使用RenderTargetBitmap渲染为CYMK格式并保存图像 [英] Use RenderTargetBitmap render to CYMK format and save image

查看:164
本文介绍了使用RenderTargetBitmap渲染为CYMK格式并保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Freinds,


有什么方法可以使用 以CYMK格式呈现图像.源是一个DrawingImage.这是从 DrawingGroup中收集图像的. 最终图纸需要另存为CYMK格式的图像文件.在此转换过程中是否可以使用任何编解码器源.

感谢&问候,

Madhav

Hi Freinds,


Is there any method to use the RenderTargetBitmap to render  the image in CYMK format. The source is a DrawingImage. This collects the image from a DrawingGroup. The final Drawing need to save as Image File of CYMK format. Is there any Codecs source available to use in this conversion pls.

Thanks & Regards,

Madhav

推荐答案

您应该可以:

RenderTargetBitmap renderTarget =新的RenderTargetBitmap(resX,resY,dpiX,dpiY, PixelFormats . Cmyk32 );

如果以这种方式生成它,它应该在内部将数据另存为CMYK.

如果您随后使用
You should be able to do:

RenderTargetBitmap renderTarget = new RenderTargetBitmap(resX, resY, dpiX, dpiY, PixelFormats. Cmyk32 );

If you generate it this way, it should save the data, internally, as CMYK.

If you then save using TiffBitmapEncoder specifying BitmapCreateOptions.PreservePixelFormat, it should save it as a CMYK TIFF file.


这篇关于使用RenderTargetBitmap渲染为CYMK格式并保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆