Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, August 27, 2007 11:26:18 PM(UTC)
happy_LEO

Groups: Registered
Posts: 3


I create a LEAD object in HTML and pass the path of the multiple page of tiff images to BitmapDataPath. I want the object display the second or other page of the tiff image in the web. How can i make it? Can provide examples in ASP?

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, August 28, 2007 11:22:26 AM(UTC)

BoydP  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

To do this using COM, the following code should get you
started in the right direction (writtin VBScript):

<%
Dim RasterObj
Dim RasterIO

Set RasterObj = Server.CreateObject("LEADRaster.LEADRaster")
Set RasterIO = Server.CreateObject("LEADRaster.LEADRasterIO")

Dim SAVE_OVERWRITE = 0
Dim FILE_JPEG = 10

Dim filepath = "path to your multipage tiff here"

Dim page = number of page to display

RasterIO.Load RasterObj, filepath, 0, page, 1

Dim savepath = "path to save image"

RasterIO.Save RasterObj, savepath, FILE_JPEG, 24, 2, SAVE_OVERWRITE

Response.Write "<img src='"+savepath+"'>"
%>

Make sure that you initialize the filename, page, and
savepath variables accordingly.

If you are not using the COM interface, can you tell me what
LEADTOOLS version and interface (COM, OCX,

API, etc.) you are using?
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.046 seconds.