Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
Hi ! I'm a new member in this forum. Could any one help me, how to get RGB values at every pixel from a image file ? But, that image file not open or show in my form, just get the RGB values. Then, i can change that RGB values and create a new image file. Honestly, i'm working an image encryption. Please, help me.... it's confused me so much. Thanks. GBU NB : I'm sorry if my English is bad
|
|
|
Keithuk
|
|
Group: Moderators
Posts: 1.9K,
Visits: 5.5K
|
Welcome to A1vbcode Takeshi. Takeshi (10/6/2008) But, that image file not open or show in my form, just get the RGB values. But if you can't load the image into a PictureBox or ImageBox how are you going to do this? Why won't it load? What code are you using? Picture1.Picture = LoadPicture(App.Path & "\your.jpg")
Keith
I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.
|
|
|
Keithuk
|
|
Group: Moderators
Posts: 1.9K,
Visits: 5.5K
|
Takeshi (10/7/2008) I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.So you have sorted loading your image then? You didn't in your first post. I've just read your post in AndreaVB and you don't mension about unable to load the image. I don't have VB at work so I will have to do a few checks when I get home. There are API calls GetPixel and others I think for getting the colour at the mouse position.
Keith
I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
Thanks. Yeah, about in andeavb forum. That is my first post about RGB values. But then i think, an encryption program maybe can to process an image folder not just an image file. It means can be process image file in a folder all at once. Maybe 2, 5, or 10 image file. So, how can i load image files all at once in my form to get the RGB ?? So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once. Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
Thanks. Yeah, about in andeavb forum. That is my first post about RGB values. But then i think, an encryption program maybe can to process an image folder not just an image file. It means can be process image file in a folder all at once. Maybe 2, 5, or 10 image file. So, how can i load image files all at once in my form to get the RGB ?? So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once. Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU.
|
|
|
Keithuk
|
|
Group: Moderators
Posts: 1.9K,
Visits: 5.5K
|
Takeshi (10/7/2008)
Thanks. Yeah, about in andeavb forum. That is my first post about RGB values. But then i think, an encryption program maybe can to process an image folder not just an image file. It means can be process image file in a folder all at once. Maybe 2, 5, or 10 image file. So, how can i load image files all at once in my form to get the RGB ?? So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once. Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU. Now your increasing your intial statement with multiple images. I haven't had a chance to check my records yet. This question as been asked before do a search on VBforums. Watch you double posts Takeshi.
Keith
I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|
|
|
Takeshi
|
|
Group: Forum Members
Posts: 8,
Visits: 14
|
I'm sorry, i'm not increase it. I just not tell completely and specifics. I search on vbforums, but i can't found any thread that same or similar with my problem. Could you tell me which thread link on vbforums that same with my problem ? Please, help me... THanks. GBU.
|
|
|