This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-28 12:03:44

msalemegypt
Scratcher
Registered: 2010-02-11
Posts: 4

Color palette of the single object thumbnail

hi
i need to generate thumbnail from scratch files (.sb) using php
i have done it successfully with the two objects one (where the image is contained in 0xB and colors in 0x14)
but i want to know the color palette for the single object one (where the image is contained in 0xB with 256 colors per pixel)
thanks in advace

Offline

 

#2 2010-03-29 01:19:09

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Color palette of the single object thumbnail

Please clarify...
I have no idea what you mean.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#3 2010-03-29 11:06:24

msalemegypt
Scratcher
Registered: 2010-02-11
Posts: 4

Re: Color palette of the single object thumbnail

hi
thank for replying

in scratch project files there are different structures
in one of them there is a color form which has a bytearray for the image itself and an array for the color and there is an other structure in which there is a form which has only the bytearray which has the full information of the image but without the color palette (which i guess is fixed in that case)  , i can get the colorform successfully and display the thumbnail but in the case of the form i donot know the color palette so i cannot display the thumbnail correctly
this is the correct image :http://msalemegypt.kilu.de/my_images/ref.bmp
and this is my generated one :http://msalemegypt.kilu.de/my_images/out.bmp

Last edited by msalemegypt (2010-03-29 11:12:43)

Offline

 

Board footer