|
-
Mar 2nd, 2002, 05:13 PM
#1
Thread Starter
New Member
squares
I need to know is there anyway to use the v.b.square as an eye?Just as you can use GetPixel with the mouse pointer and then pass that RGB value. I would like to know if theres anyway to do the same with the vbSquare and then pass it's value in the same manner.My square is to be 4 vbPixels by 4 vbPixels.Any help into what I need to do or allowable code will be very nice , as my entire project has come to a halt and is now awaiting for this to be solved.
-
Mar 2nd, 2002, 09:17 PM
#2
Addicted Member
"1 4m 4 1337 #4xz0r!'
Janus
-
Mar 2nd, 2002, 11:15 PM
#3
Thread Starter
New Member
Um. yep , just a regular v.b.square , under the shapes control.I want to use it as an eye.(for alot of reason).Is this possible? Can you explain to me what to do ?
-
Mar 3rd, 2002, 01:21 AM
#4
Addicted Member
OH, a Shape control. I was like, "huh? SQUARE control? O_o"
Hmm, you'd have to use the Cos and Sin functions to calculate the X and Y, and before you could use those, you'd have to figure out the angle to the mouse
"1 4m 4 1337 #4xz0r!'
Janus
-
Mar 3rd, 2002, 08:51 AM
#5
Thread Starter
New Member
Are Step by step instruction's possible?I really do need to do this and have no idea as to how to do it.The sqaure's will be stationary , they will not move .
-
Mar 3rd, 2002, 11:48 AM
#6
Addicted Member
Well then explain your problem more carefully because I don't know what you want to do.
"1 4m 4 1337 #4xz0r!'
Janus
-
Mar 3rd, 2002, 12:29 PM
#7
Thread Starter
New Member
I don't know how to implement nothing of what you mentioned above.What exactly will I have to do? Open a new project , place a picture box on the form , then place a v.b.square anywhere inside it you choose , now place another picturebox and place a v.b.square in it.Set a picture to the picture1 background and leave the v.b.square as transparent , now pass the rgb values that are under the first v.b.square to the second v.b.square that is in picture2 box. Leave the picture2 background blank.Do you understand what I am trying to do ?The first v.b.square is 4x4 the second v.b.square is 9x9.
-
Mar 3rd, 2002, 01:31 PM
#8
Addicted Member
No.
Explain the program concept, why do you want to pass RGB values
Some Days, i just get this feeling that i'm helping to write dozens of Viruses...
-
Mar 3rd, 2002, 01:33 PM
#9
Thread Starter
New Member
I have explained the program already , all that is needed to know that is.Please read the post .
-
Mar 3rd, 2002, 01:35 PM
#10
Frenzied Member
just use the StretchBlt API and blit it to the other picbox
for the source rect you define a rect with 4*4 and for destrect 9*9 and that's it
if you have trouble with quality loss thorugh stretchblt I am sure Janus could explain some other method I am not familiar with.
Well he knows what I mean...
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 3rd, 2002, 01:40 PM
#11
Thread Starter
New Member
I don't know BitBlt. How ? There shouild'nt be enough quality loss to worry with.Their will be solid color RGB values passed.
-
Mar 4th, 2002, 07:43 AM
#12
Frenzied Member
well if you need bitblt tutorials I would go to
www.ur.co.nz
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 4th, 2002, 02:01 PM
#13
Addicted Member
He's not trying to blit, i think he's trying to do something else, but he's obviously not explaining it well enough.
We need to know what this is FOR, not what you're doing, we already know you're using a picturebox and shape controls.
"1 4m 4 1337 #4xz0r!'
Janus
-
Mar 4th, 2002, 02:08 PM
#14
Frenzied Member
Well I figured what he wants to do is to press the mouse somewhere on a picturebox. Than he wants the content of the picbox to be copied to another picbox, and I think he wants to magnify it...
tell me if I'm right
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 4th, 2002, 02:13 PM
#15
Thread Starter
New Member
Janus , You know how you use GetPixel and pass the RGB value that is under the mouse pointer , right ( I assume you do ) I want to do the same thing with the entire area that lay's beneath a v.b.square.Of which will be placed into a picture box control.The v.b. square's will not move , only pass the RGB values in the picturebox that the v.b.square is above. So eg..... I load a picture into picture1. , so , let's say : square2 = square1 , but in essence it was square1 that passed it's information to square2. My square's are small to get the RGB , they are 4 pixel's by 4 pixel's , they will then pass the RGB value to a second set of square's which will be 9 pixel's by 9 pixel's.I'd really like to stay away from Blitting , as I know nothing more of it other than how to get the current RGB value that lay's beneath the mouse cursor with it.I'd like to do the same with a 4 x 4 square.
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
|