roniemartinez / libqpsd

PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)
GNU Lesser General Public License v2.1
108 stars 25 forks source link

Fix indexed support #4

Closed yuezhao closed 11 years ago

yuezhao commented 11 years ago

Fix indexed support, and use QImage::Format_Indexed8 in grayscale mode to save memory. And I found a nice reference: https://github.com/OpenImageIO/oiio/blob/master/src/psd.imageio/psdinput.cpp

roniemartinez commented 11 years ago

Tested it! Wow it worked! :)