TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 2:42 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Extract bytes of a scaled version of an image
PostPosted: Mon Jul 25, 2011 1:56 pm 
Offline

Joined: Fri Jul 22, 2011 7:13 am
Posts: 14
Is there a chain of calls that can extract the bytes of a scaled version of an image in the buffer in a specified format without changing the image in the buffer?

Based on the fact that GetSelectedImageSize(format) seems to have a side-effect of changing the internal format mode of the plugin in preparation for SaveSelectedImagesToBytes(), I am hopeful that GetImageSize() also prepares a resized version of the image, available for extraction. I'm just not sure of this, or what other methods are required. Can you provide some direction here?

Thanks,

Jason


Top
 Profile  
 
 Post subject: Re: Extract bytes of a scaled version of an image
PostPosted: Mon Jul 25, 2011 8:54 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Jason,

Currently, GetImageSize() cannot be used together with SaveSelectedImagesToBytes(). I will add your feature request to our issue tracking system for future consideration.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: Extract bytes of a scaled version of an image
PostPosted: Tue Jul 26, 2011 5:07 am 
Offline

Joined: Fri Jul 22, 2011 7:13 am
Posts: 14
So I realize the clearer way to describe what I want - a Thumbnail.

  • Is there a way to extract a scaled version without affecting the original?
  • Is there a to scale the image, extract it, and then a method to revert it to the original?
  • Is there a way to duplicate an image in the buffer WITHOUT transferring to/from the clipboard?


Top
 Profile  
 
 Post subject: Re: Extract bytes of a scaled version of an image
PostPosted: Tue Jul 26, 2011 5:44 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Jason,

For your questions:

1. You can copy the original image either to the same control or to another control, scale the image and then extract the scaled version.
2. Yes. Please see item 1.
3. Yes. You can use the SaveSelectedImagesToBytes method to save the image, and then call LoadImageFromBytes to load the same image to the buffer.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Sun May 20, 2012 2:42 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog