Home › Forums › TWAIN Classic › problem save image with other dpi › Reply To: problem save image with other dpi
November 29, 2007 at 5:59 pm #24103
it´s done
i got the XRESOLUTION´s supported whit this code:
BUT i don´t know how to get an array (or value) from the result cap (named capX)
public void dpi_supported()
{
TwRC rc;
CloseSrc();
if( appid.Id == IntPtr.Zero )
{
Init( hwnd );
if( appid.Id == IntPtr.Zero )
return;
}
rc = DSMident( appid, IntPtr.Zero, TwDG.Control, TwDAT.Identity, TwMSG.OpenDS, srcds );
if( rc != TwRC.Success )
return;
ArrayList dpis = new ArrayList();
IntPtr hbitmap = IntPtr.Zero;
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;
}
}
can u help me please….