The Daily Click ::. Forums ::. Klik Coding Help ::. Fastloops and Pixel Colors
 

Post Reply  Post Oekaki 
 

Posted By Message

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
17th December, 2005 at 18:17:49 -

I'm trying to make an app that replaces the backround of an image when you give it the current backround without the foreground, the current backround with the foreground, and the backround that you want the current backround replaced with. I need to have it make an array of all of the pixel colors in the image. The only way that I know of that this could be done is using the Get Pixel Color object. I am using fast loops so that the task doesn't take hours. The problem is, when the fastloop starts, the Active Picture object dissapears, so the whole screen is white. I checked the events, I never told it to dissapear. Is there any way to fix this problem?

Image Edited by the Author.

 
Happily Using Mac Now

I Officially Leave-d !

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th December, 2005 at 18:37:53 -

Ehhh... I have no idea why it does so, but you could try using overlay object or something to paste the Active Picture into the background after loading it...

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
17th December, 2005 at 18:40:46 -

Are you using the most current version of MMF? If so, try this instead:
Use the Overlay object and load an image into it. The overlay object has it's own built in get pixel colour at (x,y) function.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th December, 2005 at 19:30:38 -

Oh. Didn't know that. Haven't used it much.

Well, anyway. The overlay object =P

 
n/a

Keatontech!

Possibly Insane

Registered
  10/07/2005
Points
  2720
17th December, 2005 at 20:45:10 -

k thanks

 
Happily Using Mac Now

I Officially Leave-d !
   

Post Reply



 



Advertisement

Worth A Click