473,480 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

raw image data -> picturebox ?

hello
i receive from a dll a pointer to raw image data (307200bytes grayscale
values).
can someone explain how i can put this image data in a picturebox in VB?
or can someone post code to do it please ???
thanks in advance
Jul 17 '05 #1
3 6408
"Defcon31" <st*****@hotmail.com> wrote:
hello
i receive from a dll a pointer to raw image data (307200bytes grayscale
values).
can someone explain how i can put this image data in a picturebox in VB?
or can someone post code to do it please ???
thanks in advance


I did that in VB3, reading a machine vision file (gray scale). You can download
the code from this page: http://thelabwiz.home.mindspring.com/vbsource.html

Look for VISION. The ZIP file includes the source, the VB3 executable (needs
the VB3 runtime), and some sample images.

You'll have to adapt the code to the dimensions of your image and the
differences in VB3 and whatever version you're using. The original code works
with a fixed format image of 165 lines of 200 bytes each.

The code can threshold the various values to shift the white/black points in the
grayscale. It also can divide the 256 gray levels into 16 colors representing
the pixels in a given range of values as all the same color: i.e., all the pixel
values from 0-15 might be black, 16-31 blue, etc. The code hasn't been updated
since 1993, so I no longer remember the details.
More about me: http://www.jecarter.com/
VB3/VB6/C/PowerBasic source code: http://www.jecarter.com/programs.html
Freeware for the Palm with NS Basic source code: http://nsb.jecarter.com
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter at@at mindspring dot.dot com. Fix the obvious to reply by email.
Jul 17 '05 #2
and does anyone has code for VB6, making use of GDI32 ????
think i need bitblocktransfer but it wont work !!!
please help me.
thanks

"the Wiz" <lo**@message.body> wrote in message
news:e9********************************@4ax.com...
"Defcon31" <st*****@hotmail.com> wrote:
hello
i receive from a dll a pointer to raw image data (307200bytes grayscale
values).
can someone explain how i can put this image data in a picturebox in VB?
or can someone post code to do it please ???
thanks in advance

I did that in VB3, reading a machine vision file (gray scale). You can

download the code from this page: http://thelabwiz.home.mindspring.com/vbsource.html
Look for VISION. The ZIP file includes the source, the VB3 executable (needs the VB3 runtime), and some sample images.

You'll have to adapt the code to the dimensions of your image and the
differences in VB3 and whatever version you're using. The original code works with a fixed format image of 165 lines of 200 bytes each.

The code can threshold the various values to shift the white/black points in the grayscale. It also can divide the 256 gray levels into 16 colors representing the pixels in a given range of values as all the same color: i.e., all the pixel values from 0-15 might be black, 16-31 blue, etc. The code hasn't been updated since 1993, so I no longer remember the details.
More about me: http://www.jecarter.com/
VB3/VB6/C/PowerBasic source code: http://www.jecarter.com/programs.html
Freeware for the Palm with NS Basic source code: http://nsb.jecarter.com
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/ johnecarter at@at mindspring dot.dot com. Fix the obvious to reply by

email.
Jul 17 '05 #3
fergarduno
2 New Member
Can someone please tell me how to do that ?
Apr 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11729
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
10
7373
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
4
11724
by: Detlef Huettenbach | last post by:
I was trying to convert a Windows Forms prototype application to an ASP.NET solution that makes use of loading data streams into the Image Web/Windows control. For WinForms no problem. However in...
1
2489
by: John Thompson | last post by:
We're sooo close. When we load the page to upload the image, all of the prms go through except the binary image data. Using SQL server with the data type set to "image". Please help! Thanks-...
13
2328
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
5
10608
by: moondaddy | last post by:
I'm caching a dataset in an asp.net session variable to hold a user's data. one data item I need to store is an image the user uploaded. My problem is that I don't know how to get the image into...
2
4108
by: Adam Teale | last post by:
hey guys Is there a builtin/standard install method in python for retrieving or finding out an image's dimensions? A quick google found me this:...
1
1745
by: helraizer1 | last post by:
Hi all, I have a dynamic image that picks out data from a dynamically created .line file. showimage.php(5) <?php include("linesfile.php5"); $linesDataFile = new DataFile("data.line");
1
11044
by: bharathv6 | last post by:
i need to do is modify the image in memory like resizing the image in memory etc ... with out saving it disk as i have to return back the image with out saving it disk PIL supports the use of...
0
10702
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4468
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.