Does anyone how any clue on how to read a TIFF file directly in a
filestream?
I know I can load the complete image into memory, but since this a 800+ mb
image, I usually get a "Out of memory" error.
Basically, all I have to do, is look up some certain pixel-values, so I
would guess that its just a matter of seeking to the correct bytes and parse
them to a color.
Can anyone give me some pointers on how to calculate the correct position in
the file, where I can get a certain pixel-value?
I'm complete off on this one, so any ideas would do (except the approach of
splitting the image up in several smaller images).
Regards
/Morten Nielsen 2 5139
There's a link to the pdf for the TIFF specification from this site: http://whatis.techtarget.com/definit...214180,00.html
--
Mike Mayer, C# MVP mi**@mag37.com http://www.mag37.com/csharp/
"Morten Nielsen" <sp**@iter.dk> wrote in message
news:c5**********@news.net.uni-c.dk... Does anyone how any clue on how to read a TIFF file directly in a filestream? I know I can load the complete image into memory, but since this a 800+ mb image, I usually get a "Out of memory" error. Basically, all I have to do, is look up some certain pixel-values, so I would guess that its just a matter of seeking to the correct bytes and
parse them to a color.
Can anyone give me some pointers on how to calculate the correct position
in the file, where I can get a certain pixel-value? I'm complete off on this one, so any ideas would do (except the approach
of splitting the image up in several smaller images).
Regards /Morten Nielsen
There's a link to the pdf for the TIFF specification from this site: http://whatis.techtarget.com/definit...214180,00.html
--
Mike Mayer, C# MVP mi**@mag37.com http://www.mag37.com/csharp/
"Morten Nielsen" <sp**@iter.dk> wrote in message
news:c5**********@news.net.uni-c.dk... Does anyone how any clue on how to read a TIFF file directly in a filestream? I know I can load the complete image into memory, but since this a 800+ mb image, I usually get a "Out of memory" error. Basically, all I have to do, is look up some certain pixel-values, so I would guess that its just a matter of seeking to the correct bytes and
parse them to a color.
Can anyone give me some pointers on how to calculate the correct position
in the file, where I can get a certain pixel-value? I'm complete off on this one, so any ideas would do (except the approach
of splitting the image up in several smaller images).
Regards /Morten Nielsen
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Morten Nielsen |
last post by:
Does anyone how any clue on how to read a TIFF file directly in a
filestream?
I know I can load the complete image into memory, but since this a 800+ mb
image, I usually get a "Out of memory"...
|
by: John Dann |
last post by:
I'm trying to read some binary data from a file created by another
program. I know the binary file format but can't change or control the
format. The binary data is organised such that it should...
|
by: Brad |
last post by:
I'm working on a web app which will display LARGE tiff image files (e.g
files 10-20+ mb). Files are hidden from users direct access. For other,
smaller image files I have used FileStream to read...
|
by: qysbc |
last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is
to have the server code open a binary stream, set the content type to
"image/tiff" and call Response.BinaryWrite. On...
|
by: Ryan |
last post by:
I've created a custom configuration section that inherits (naturally) from
System.Configuration.ConfigurationSection. The configuration section is
working 99% fine, however I keep coming across a...
| |
by: piratelord |
last post by:
I've an existing program I need to tweak that can open a non-text file at low level, find certain strings and replace with another, and write back to a new file.
The string replacement bit isn't a...
|
by: Tod Birdsall, MCSD for .NET |
last post by:
Hi All,
I am looking for recommendations on ways/components to implement the
following features in my application:
1. Dynamically generate a barcode image to insert into a PDF document
using...
|
by: Ben |
last post by:
Hi
We are looking for a component that offers that offers the below for Tiff
files:
Image clean-up (deskew, despeckle)
Printing capabilities from VB
The ability to add text to image, e.g....
|
by: Victory |
last post by:
Hi,
I need to know the compression type of jpeg (jpg) files. I am using the
System.Drawing.Imaging and loading the file using an Image object. The
next thing i do, is to examine the propertyItems...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |