Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
srinivasa reddy...
(17)
Babu Akkandi
(16)
Tejinder Singh ...
(10)
Last 7 Days
Appukuttan
(620)
Babu Akkandi
(453)
Tejinder Singh ...
(271)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
Show specific page from the multiple Image file in the pictureBox
Posted Date: 22 May 2008
Resource Type:
Code Snippets
Category:
Visual Studio
Author:
Ravindran
Member Level:
Bronze
Rating:
Points
: 10
Dim img As Image = Image.FromFile("C:\Documents and Settings\Administrator\Desktop\00708A0E.TIF")
Dim ms As MemoryStream = Nothing
Dim returnImage As Image = Image.FromFile("C:\Documents and Settings\Administrator\Desktop\00708A0E.TIF")
Try
ms = New MemoryStream()
Dim ID As Guid = img.FrameDimensionsList(0)
Dim fd As New FrameDimension(ID)
Dim Count As Integer = img.GetFrameCount(fd)
If I < Count Then
img.SelectActiveFrame(fd, I)
img.Save(ms, ImageFormat.Bmp)
returnImage = Image.FromStream(ms)
ImageViewer.Image = returnImage
Else
Exit Sub
End If
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "Error")
Finally
ms.Close()
I += 1
End Try
Responses
Author:
Sathyendra Pai
25 May 2008
Member Level:
Silver
Points
: 2
Its very nice.. Please correct the Title spelling.. It should be "specific" right?
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
How to count multiple pages in the multiple image file
Previous Resource:
Connecting Database
Return to Discussion Resource Index
Post New Resource
Category:
Visual Studio
Post resources and
earn money
!
Related Resources
Visual Studio Code Snippet for File Operations
how to use a connection the web.config
How to deploy dot net application to pc having 2 versions of framework
Read machine.config file settings
Reversing a string
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use