The Daily Click ::. Forums ::. Klik Coding Help ::. 256 color problem
 

Post Reply  Post Oekaki 
 

Posted By Message

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
14th August, 2005 at 11:13:58 -

I cant figure out how to save images into 256 colors without running in 256 color mode. and i want the first color of the 256 color palette to be the background color. the image manipulator object doesnt do it, it doesnt save in gif n saves in all the other formats in 32b. Plz help.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
15th August, 2005 at 17:20:17 -

C'mon, doesnt any1 know how to do this?? I really need to know, mebbe somthin with the subapp extension could be done? anyway, i figured out a way but theres a problem in it.

the way i figured is way too slow n it eats a lot of the computers RAM. the thing is that it picks a color on the picture at (X,Y), then compares it with the 1st 256 variables of a Data Store object. then, if that color doesnt match any1 of them, adds it to the Data Store Object. then it gets the location of another pixel n does this process again. until all the pixels' colors are compared to the 256 variables or if all of the 256 variables have been filled. this way, i figure I can get the pallete for the pic. I dont know how I can get those values into a 256 color palette of a 256 color app but im pretty sure I can figure that out. but if u know how to do that, that'll be a gr8 help too.

the only problem here is that my picture size is 256x400. thats 102400 pixels. n thats 102400 x 256 calculations. which is very very slow. my computer took like 2.5 minutes to store all the colors in the datastore object.

so can u plz tell me an alternate way or a method that will make this faster n not eat taht much RAM??

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
16th August, 2005 at 04:37:39 -

plus, whats the problem with the palette object? whenever i run an app with that, it hangs the app..

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
16th August, 2005 at 04:43:55 -

You need to explain your problem more clearly.

 
n/a

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
16th August, 2005 at 11:15:31 -

theres an image saved in 32b by using mmf, which i want mmf to change to 256. thats the problem. if ure talking abt the palette object. whenever i start the frame with it included, the frame doesnt even come up n i check my RAM, n all 100% is used.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!
   

Post Reply



 



Advertisement

Worth A Click