Home › 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
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!!!!!!!