|
-
Aug 2nd, 2009, 05:40 PM
#1
Thread Starter
Member
Looking for help to condense this code...
I have 4488 lines of SetPixel's because i have a button that i'm making without using a picture. (but this is just for one out of a few pictures)
I want to condense the lines that are like...
vb Code:
SetPixel hdc, 0, 0, &HE7EBEE SetPixel hdc, 1, 0, &HD9DADC SetPixel hdc, 2, 0, &HCFCFD1 SetPixel hdc, 3, 0, &HCCCCCC SetPixel hdc, 4, 0, &HCCCCCC SetPixel hdc, 5, 0, &HCCCCCC SetPixel hdc, 6, 0, &HCCCCCC SetPixel hdc, 7, 0, &HCCCCCC SetPixel hdc, 8, 0, &HCCCCCC SetPixel hdc, 9, 0, &HCCCCCC '...and it goes on... SetPixel hdc, 128, 0, &HCBCBCB SetPixel hdc, 129, 0, &HCFCFCF SetPixel hdc, 130, 0, &HD9DADC SetPixel hdc, 131, 0, &HE6EAEB
...and so on. it goes back to other colors at the end, and then new colors start at the next Y coordinate.
I need the code to make all the lines with the same color like so
vb Code:
SetPixel hdc, 0, 0, &HE7EBEE SetPixel hdc, 1, 0, &HD9DADC SetPixel hdc, 2, 0, &HCFCFD1 DrawLine 3, 0, 127, 0, &HCCCCCC ' Drawline(X1, Y1, X2, Y2, COLOR) SetPixel hdc, 128, 0, &HCBCBCB SetPixel hdc, 129, 0, &HCFCFCF SetPixel hdc, 130, 0, &HD9DADC SetPixel hdc, 131, 0, &HE6EAEB
(this is an example, and i've tried for hours on a way to do it...no methods have worked. i've asked several of my buddies from MSN...theyre stumped as well.
I'd do it manually if i didnt have so many to do, which is why i need a code maker xD
Thanks guys
Last edited by mOBSCENE; Aug 2nd, 2009 at 05:43 PM.
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
|