TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: problem save image with other dpi

Forums › TWAIN Classic › problem save image with other dpi › Reply To: problem save image with other dpi

November 30, 2007 at 1:12 am #24107
hiEveryBody
Participant
  • Topics - 2
  • Replies - 9
  • Total Posts - 11

OK…this is my internal class

[StructLayout(LayoutKind.Sequential, Pack = 2)]
internal class TwEnumeration
{
public short ItemType;
public short NumItems;
public short CurrentIndex;
public short DefaultIndex;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=100)]
public short[] ItemList;
}

based in twain´s specification


typedef struct {
TW_UINT16 ItemType;
TW_UINT32 NumItems;
TW_UINT32 CurrentIndex;
TW_UINT32 DefaultIndex;
TW_UINT8 ItemList[1];
}

So……when i get a certain capability (XResolution, YResolution, SupportedSize, etc. Using TwMSG.Get insted of TwMSG.Set) this property fill the capability object (capX) with the results (capX.handle)…

TwCapability capX = new TwCapability(TwCap.YResolution, TwOn.Enum  , TwType.Fix32);
rc = DScap( appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, capX);
if( rc != TwRC.Success )
{
CloseSrc();
return array;
}

note : capX.handle is only that: a HANDLER!!!!! jejej

😆
😳 my english is bad..i should learn it!!

greetings!!!!!!!

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Girls of Desire: All babes in one place, crazy, art
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in