Mantis - tweak
Viewing Issue Advanced Details
1217 Any major always 05-17-05 07:19 05-17-05 07:19
starbow  
 
normal  
new  
open  
none    
none  
0001217: CPlayer butchering color maps on many jpgs.
if I try to load a jpg image into a CPlayer like:

aGraphic := CImageResource readFrom: file.
aPlayer value: aGraphic.

I get a version of the image with a completely wrong color map.
If I load the jpg like this:

aGraphic := Form fromFileNamed: file fullName.
aPlayer value: aGraphic.

I get the same incorrect image.

If I look at the image to make sure it is ok, like this:

aGraphic := Form fromFileNamed: file fullName.
aGraphic asMorph openInHand.

the image opens correctly, with the correct image map.

Also, the images are loaded incorrectly, with the incorrect color map, in the file icons of the CFileDialog.
Not all the jpgs cause the problem.
For example, in the Jasmine\Content\Textures Folder lake.jpg, pyramid.jpg & oxygen.jpg open correctly. All the rest open with incorrect color maps.

There are no notes attached to this issue.