I need some help from all of members here, if somebody know what is the code for converting image into array. I'm still new in VB, and I wanna learn it ...please if somebody know ..can u tell me??
Wot do u mean umbrella? an image to an array? pls be specific... I gus the vague nature of the question is wot earned u 0 replies. Elaborate on the issue. Let's try to figure out wot exactly u want.. All the Best
Praveen Menon
pcmin@rediffmail.com
actually I need some code for converting image to pixel and vice versa. but I've no idea how to make the code coz I'm still new in VB. If u got some idea how to make it..please help me..
Thanks for your help DrJavaJoe, actually I need to know more about how to coding for VB, not just image to pixel. Then I need to know how to make good interface and interactive in VB???
Umbrella
Try reading the FAQ referred below
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
yes Mr TheTuna..that is what I mean. I wanna take the individual pixels in a bitmap and place them in an array...actually I need to know how to make the code for placing it.
Then I also need to know how to count the missing pixel when comparing two picture/image between the original image and the blurr image?? actually that is what I mean particularly, but I've no idea for that..I'm still in blurr!! please help me...your cooperation is highly appreciated..
How large is your bitmap? You're looking at a HUGE array...
Okay then, here's how I would pop each pixel from a bitmap. Get a needle. Very carefully place the needle over the very first picture element you can see. Press firmly. That's the first pixel. Now move your needle one pixel to the right. Don't go too far, you might skip one.
Ok, look, it's way, way too early in the morning for me to do anything besides laugh. Good night, I'll try to give you a real answer tomorrow.
Actually, let me ask you this, do you really need to store each pixel in an array? cant you just move through the bitmap one pixel at a time on each bitmap and compare them on the fly?
Maybe I just don't get it...
Tuna is going to bed. Honey, I'm off the computer now... honey? Wake up! Ah, nevermind.
Tuna, thanks for u'r advice...but I'm still waiting for your help tomorrow...I really need a help, I'm really in trouble :-(..I'm not joking..anyway, thanks for u'r reply..hope u won't break the promise.
I'm reading Appleman's information on bitmaps right now. If I can figure this out, I'll post it here. If not, I'll post a big appology for not figuring it out!
Ok here's some info you can try to test and toy with...
Declare Function GetDIBits& Lib "gdi32" (ByVal aHDC as Long, ByVal hBitmap as Long, ByVal nStartScan as Long, ByVal nNumScans as Long, lpBits as Any, lpBI as BITMAPINFO, ByVal wUsage as Long)
Appleman says: This copies bis from a bitmap into a device-independent bitmap.
and
Declare Function GetBitmapBits& Lib "gdi32" (ByVal hBitmap as long, ByVal dwCount as long, lpBits as Any)
This Copies bits from a bitmap into a buffer
Thus far, I don't have the full answer, but I'm working on it!
Appleman says in Chapter Nine of his Programmers guide to the win32 api that this chapter covers "Direct manipulation (using code) of bitmap data.
Tuna (more to come) Tuna - It's fat free until you add the Mayo!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.