|
-
Feb 2nd, 2003, 04:33 PM
#1
-
Feb 2nd, 2003, 10:44 PM
#2
-
Feb 2nd, 2003, 10:44 PM
#3
-
Feb 3rd, 2003, 11:04 AM
#4
-
Feb 3rd, 2003, 11:41 AM
#5
The 'default' colors are the standard 256 color pallete. They are colors 0 to 255.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Feb 3rd, 2003, 08:22 PM
#6
tnx 
The 'default' colors are the standard 256 color pallete. They are colors 0 to 255.
umm how can I get those 256 colors though? what's the rgb pattern...?
the one I showed above from fireworks has only 216. The RGB values are incremented by 51. That's how they get their 216 colors.
but how do I get the 256 colors? should be simple, I think I'm turning dumb
Last edited by MrPolite; Feb 3rd, 2003 at 08:33 PM.
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 4th, 2003, 11:02 PM
#7
umm bump, how do I get the 256 color pallet?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 22nd, 2003, 11:53 PM
#8
I feel stupid for bumping this, because this should be easy... but anyways, I'm still looking for an answer. Anyone knows what I should do to get the default 256 colors?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 26th, 2003, 09:27 AM
#9
Fanatic Member
Originally posted by MrPolite
This is the list of fireworks "color cubes". I have no idea what pattern they've used to get these. Can someone help me?
I just worked it out
Add a PictureBox to your form called PictureBox1, and add this code
VB Code:
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim overallX As Integer
Dim overallY As Integer
Dim Increments() = {0, 42, 91, 144, 198, 255}
Dim Ix As Integer
Dim Iy As Integer
Dim Width As Integer = 10
Dim Red As Integer
For Red = 0 To UBound(Increments)
For Ix = 0 To UBound(Increments)
For Iy = 0 To UBound(Increments)
Dim R As Rectangle = New Rectangle((Ix * Width) + overallX, (Iy * Width) + overallY, Ix + Width, Iy + Width)
Dim Brush As System.Drawing.SolidBrush
Brush = New System.Drawing.SolidBrush(Color.FromArgb(Increments(Red), Increments(Ix), Increments(Iy)))
e.Graphics.FillRectangle(Brush, R)
Next
Next
overallX += Width * (UBound(Increments) + 1)
If overallX Mod (3 * (UBound(Increments) + 1)) = 0 Then
overallX = 0
overallY += Width * (UBound(Increments) + 1)
End If
Next
End Sub
-
Feb 26th, 2003, 09:38 AM
#10
Fanatic Member
although
VB Code:
overallX += Width * (UBound(Increments) + 1)
If overallX Mod (3 * (UBound(Increments) + 1)) = 0 Then
overallX = 0
overallY += Width * (UBound(Increments) + 1)
End If
is bugged like hell
It was spose to draw 3 blocks of colours, then move down to draw the other 3 block of colours, but changing the Width variable breaks it
-
Feb 26th, 2003, 05:18 PM
#11
-
Feb 26th, 2003, 05:46 PM
#12
Fanatic Member
If you interested this is how i worked it out
I took a screenshot of the fireworks picture you added, then using a paint program i checked what each of the top left across colour values were
I noticed it was all green 0, 42, 91, 144, 198, 255
Then i check the top left down colour values and notice it was all just blue 0, 42, 91, 144, 198, 255
Then i noticed the rest of the colour in the top left colours block were just inbetween values of the above values.
Then I went on to the next colour block and notice the red had increased by the above values
and just write that small routine to show me the results
-
Mar 7th, 2003, 02:23 AM
#13
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
|