|
-
Jun 3rd, 2003, 05:57 PM
#1
Thread Starter
Fanatic Member
Picture Fade
Is there an easy way to make a picture fade from black to normal?
like I have a Jpeg and I want it to fade from back to its normal colors.
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
-
Jun 3rd, 2003, 07:55 PM
#2
Fanatic Member
Use GetPixel() to get the real color. Then use a loop and add 1 for every frame until it reaches the normal color. Use SetPixel() to put down the new color.
-
Jun 3rd, 2003, 08:08 PM
#3
Thread Starter
Fanatic Member
I dont know anything about setpixel
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
-
Jun 4th, 2003, 06:35 PM
#4
Fanatic Member
VB Code:
Public Declare Function SetPixel Lib "gdi32" Alias "SetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
SetPixel Form1.hDc, x, y, RGB(red, green, blue)
You have to use RGB() because it accepts a single color value. Form1.hDc can be replaced by whatever hDc your using.
-
Jun 4th, 2003, 06:57 PM
#5
So Unbanned
That'll be much too slow!
Use alphablend API.
-
Jun 5th, 2003, 06:46 PM
#6
Fanatic Member
I completely forgot about speed. Haha. Okay well Setpixel()/Getpixel is slower than dirt.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|