473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

getting the bytes of an image

i need to do some intense manipulation of an image/bitmap object, and i would like to outsource the heavy work to a c++ dll. the problem is, i'm having trouble finding a memory address to pass the dll as to where the data is really located (i assume it's in a bitmap format *fingers crossed*).

i've searched all over the web for hours to no avail... perhaps, you, the kind patrons of this newsgroup know of a solution?
Nov 20 '05 #1
4 1157
Hi Dudzcom,

Beneath is the in my eyes simplest way to get the bytes from an image,
however I would not use this when I see what you tell. I would look first
look for

http://msdn.microsoft.com/library/de...ingimaging.asp

I hope this helps?

Cor

\\\
dim abyt() as Byte
If fo.ShowDialog = DialogResult.OK Then
Dim fs As New IO.FileStream(fo.FileName, _
IO.FileMode.Open)
Dim br As New IO.BinaryReader(fs)
abyt = br.ReadBytes(CInt(fs.Length))
br.Close()
End if
///
Nov 20 '05 #2
Hi,

Take a look the bitmapdata class. Here is some info on it.
http://www.bobpowell.net/lockingbits.htm

Ken
--------------------
"dudzcom" <an*******@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
i need to do some intense manipulation of an image/bitmap object, and i
would like to outsource the heavy work to a c++ dll. the problem is, i'm
having trouble finding a memory address to pass the dll as to where the
data is really located (i assume it's in a bitmap format *fingers
crossed*).

i've searched all over the web for hours to no avail... perhaps, you, the
kind patrons of this newsgroup know of a solution?

Nov 20 '05 #3
* "=?Utf-8?B?ZHVkemNvbQ==?=" <an*******@discussions.microsoft.com> scripsit:
i need to do some intense manipulation of an image/bitmap object, and
i would like to outsource the heavy work to a c++ dll. the problem is,
i'm having trouble finding a memory address to pass the dll as to where
the data is really located (i assume it's in a bitmap format *fingers
crossed*).


<URL:http://www.google.de/groups?q=dotnet+lockbits+vb+marshal.copy>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
thank you for all your suggestions

i read through all the articles you guys gave me, though the one ken provided proved to be most usefull for my current needs

ken, my hat is off to you for finding such a valuable website, and to the others, my thanks again for your inpup.
Nov 20 '05 #5

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

Similar topics

1
by: apoorv | last post by:
Hi guys, I am writing a imaging aplication on VC++.I have to display images and apply effects onto it.Images could be of any type like jpg,gif,bmp,psd... I am using createDibSection API.it...
0
by: iwdu15 | last post by:
hi, im creating an instant messenger using TCP sockets, and everythings been fine until now. i want to be able to send rich text, but im hitting a wall here. what i want to do is send the font...
5
by: philip | last post by:
Here is some lines of code than I wrote. You can copy/paste theis code as code of form1 in a new project. My problem is this one : I try to write in a file a serie of bytes. BUT some bytes...
2
by: nishi.hirve | last post by:
Hello, I am writing 1 client-server application in which I have written my server in C on linux system and client in C#. My server is sending image bytes of that image size to the client....
4
by: lawrence k | last post by:
I've a jpeg image that is 514k, which doesn't strike me as very large. Yet I'm running out of error when I try to resize it: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to...
2
by: Jerry Spence1 | last post by:
I am trying to come up with a focussing routine for a camera and I need to detect when the image is in focus. As I understand it, JPG Image size goes up sharply when it is in focus as it is very...
10
by: Johnny Jörgensen | last post by:
Does anybody know how you can extract an image fron a webpage loaded into a webbrowser control and either save it to file OR save it in a database? Cheers, Johnny J.
2
by: shorti | last post by:
Hello, I am running DB2 V8.2 on AIX. I am looking for a way to get the memory size of a specific db2 agent. I have found the db2mtrk tool that gives me a list of all the applications and heap...
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.