任务单 #8056

Inappropriate color conversion
开放日期: 2006-02-19 13:45 最后更新: 2008-04-10 12:26

报告人:
属主:
(无)
类型:
状态:
开启
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
文件:

Details

GlueCode converts the Ghostscript color value to RGB
values. In opvp_map_color_rgb() in gdevopvp.c, it calls
gx_default_rgb_map_color_rgb() to convert the
Ghostscript color index to rgb value, and
gx_default_rgb_map_color_rgb() returns rgb values in
gx_color_value (16bit) for OPVP_cspaceStandardRGB, but
rgb values in 8bits per channel is correct, and these
color values must be converted from 16bit to 8bit color.

任务单历史 (2/2 Histories)

2006-02-19 13:51 Updated by: toratani
评论
Logged In: YES
user_id=10279

Additional comment;
This bug should be solved in opvp_set_brush_color() which calls
opvp_map_color_rgb(), because opvp_map_color_rgb() is the
function to be prepared for Ghostscript, and must returns
gx_color_value itself.
2008-04-10 12:26 Updated by: sho-otani
评论
Logged In: YES
user_id=10270

When dev->color_info.depth is 24,
gx_default_rgb_map_color_rgb returns 8bits colors. And
gx_device_opvp's color_info.depth is 24, so using
gx_default_rgb_map_color_rgb is correct.

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名