Skip to main content
Participant
October 13, 2009
Question

normalize 32-bit image data for 8-bit preview display

  • October 13, 2009
  • 1 reply
  • 936 views

in the filter plugin i'm creating my own preview rendering ui and thus not using gFilterRecord->displayPixels. the problem i'm noticing is that when the targeted image is 32-bit, my normalized (low dynamic range) preview image data is considerably darker than the preview that displayPixels shows.

what do i need to do to acheive the exact same color output that displayPixels does before it renders the proxy buffer to the device context? i got kind of close with a gamma correction function, but it's still off.

This topic has been closed for replies.

1 reply

Chris Cox
Legend
October 13, 2009

32 bit/channel data is gamma 1.0, you'll need to correct that for the display transfer function.

Also, you really should convert the data from the document colorspace to the display colorspace.