C# Tutorials and offshore development in India
    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



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to count multiple pages in the multiple image file


Posted Date: 22 May 2008    Resource Type: Code Snippets    Category: Visual Studio
Author: RavindranMember Level: Bronze    
Rating: Points: 10



The below code is used to get the count from the multiple page image file
There are two ways of methods here
I.
Dim MasterImage As Image = Image.FromFile("C:\Documents and Settings\Administrator\Desktop\test202.tif")

Dim oDimension As New FrameDimension(MasterImage.FrameDimensionsList(0))

Dim FrameCount As Integer = MasterImage.GetFrameCount(oDimension)

II.
Dim img As Image = ImageViewer.Image
'get its guid
Dim ID As Guid = img.FrameDimensionsList(0)
'get the frame dimensions
Dim fd As New FrameDimension(ID)
'Gets number of pages
Dim Count As Integer = img.GetFrameCount(fd)




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(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: Database Connection (Connection String)
Previous Resource: Show specific page from the multiple Image file in the pictureBox
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use