473,803 Members | 4,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multipage tiff

Al
Is it possible, using only VB.NET code, to extract a single page from a
multipage tiff file?

Nov 20 '05 #1
3 11015
"Al" <co********@cox .net> wrote in message news:92CEc.8722 $mN3.6554@laker ead06...
Is it possible, using only VB.NET code, to extract a single page from a
multipage tiff file?


Yes, it is possible. For example, you can load a multipage tiff image into an image object and select page using the
SelectActiveFra me method in the image object.

Dim img As Image
Dim bmp As Image

img = Image.FromFile( OpenFileDialog1 .FileName)
intCurrPage = 2 'Select page 2
intNumPages = img.GetFrameCou nt(Imaging.Fram eDimension.Page )
img.SelectActiv eFrame(System.D rawing.Imaging. FrameDimension. Page, intCurrPage - 1)
bmp = New Bitmap(img, PictureBox1.Wid th, PictureBox1.Hei ght)

bmp now holds the selected page.

--
Al Reid

How will I know when I get there...
If I don't know where I'm going?
Nov 20 '05 #2

Looks promising, but I am uncertain as to the proper values of
PictureBox1.Wid th and PictureBox1.Hei ght. Does it matter?

I should have mentioned, this code will be part of a web service that
will return a file(page) as a bytearray to the calling client
application.

Thanks for your kind response.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3
Al,

Download and install the ASP.Net Resource Kit. It has examples similar to what you want to do.

http://msdn.microsoft.com/asp.net/asprk/

The ImageService example is in c#, but it is easily converted.

I hope this helps.

--
Al Reid

"It ain't what you don't know that gets you into trouble. It's what you know
for sure that just ain't so." --- Mark Twain

"Al Knowles" <co********@cox .net> wrote in message news:uK******** ********@TK2MSF TNGP09.phx.gbl. ..

Looks promising, but I am uncertain as to the proper values of
PictureBox1.Wid th and PictureBox1.Hei ght. Does it matter?

I should have mentioned, this code will be part of a web service that
will return a file(page) as a bytearray to the calling client
application.

Thanks for your kind response.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #4

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

Similar topics

1
2424
by: news.microsoft.com | last post by:
Hello group, My goal is to attach an image over another image. Top image should be transparent so the back image is visible through the top one. Bellow is a test code in VB.NET. You need to create a form, a button (Button1) and an Picture Box (picBox). "watermark.jpg" is any jpg image, "beispiel.tif" is a multipage TIFF image with the white background, which will turn to transparent. The most important thing here is that the TIFF image...
0
1674
by: Curtis Justus | last post by:
Hi, I am reading in a multipage TIFF image and need to manipulate each page separately. After reading the image into an Image object, I set the page by using the SelectActiveFrame method. Then, I am converting it to an individual Bitmap/Image. Here is a sample: ---------------------- FrameDimension fd = _image.SetActiveFrame(fd, 0); Bitmap bmp = new Bitmap(_image);
2
8642
by: Becker | last post by:
I have a two page TIFF document. I simply want to create an array of image and put the two pages of this multipage tiff in this array for some further processing on seperate "images." The problem is that i can use the image.selectactiveframe to get to the individual page, but everytime i tray to say: img(icount) = myimg.SelectActiveFrame(oFDimension, iCount) The problem is that the entire tiff is put into img(icount). Any ideas?
0
1343
by: munish | last post by:
Hi, I am trying to send a tiff file which contains multiple pages/frames as a dime attachment. When I am saving the file on the server only the first page of image gets saved. Any Ideasv how to pass Multipage tiff
2
2069
by: Bdog | last post by:
I've been searching for the file PrintFramework.zip that I've seen linked on tons of posts but all the links are bad. Does anynone know where I can get a copy of this code, I hoping it is what I need to get me going on printing multipage tiff. Thanks
2
5933
by: Hulk | last post by:
Hello, Have anyone of you used any commercial/open source libraries that has a C# API to convert PDF files to Multipage Tiff files? What products are available, can you give any suggestions? Cheers!
0
1237
by: Luke | last post by:
I have a big (500+ MB) multipage TIFF image file and a database file which contains index to each image in the TIFF file. The scheme of the database is very simple. imagename (text) byte offset (integer)
0
1476
by: Luke | last post by:
I have a big (500+ MB) multipage TIFF image file and a database file which contains index to each image in the TIFF file. The scheme of the database is very simple. imagename (text) byte offset (integer) So, it would list as
0
9700
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7603
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6841
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5498
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
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 we have to send another system
3
2970
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.