ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 WIA_DPS_PAD_COLOR
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ralf

120 Posts

Posted - May 03 2017 :  03:20:34  Show Profile  Reply
Hi,

can I change the color of areas outside the scanned paper over WIA_DPS_PAD_COLOR? And If how?

Thanks Ralf

xequte

38610 Posts

Posted - May 04 2017 :  01:53:12  Show Profile  Reply
Hi Ralf

Please see:

https://msdn.microsoft.com/en-us/library/windows/hardware/ff551412%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

120 Posts

Posted - May 04 2017 :  02:52:41  Show Profile  Reply
Hi Nigel,

i also found the Microsoft Documentation.
But i don't know how to give or set the RGBQuad with WIAParams.SetDeviceProperty(WIA_DPS_PAD_Color, RGBQuad)

Thanks Ralf
Go to Top of Page

xequte

38610 Posts

Posted - May 04 2017 :  16:10:40  Show Profile  Reply
Hi Ralf

It will need to be:

WIAParams.SetDevicePropertyVariant(WIA_DPS_PAD_Color, RGBQuad);

But I have not tested this, so ensure the RGBQuad structure aligns with the MS standard.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

120 Posts

Posted - May 05 2017 :  02:31:37  Show Profile  Reply
Hi Nigel,

i tried that way! But the SetDevicePropertyVariant didn't except the RGBQuad as Variant.

Best Regards
Ralf
Go to Top of Page

xequte

38610 Posts

Posted - May 07 2017 :  19:24:57  Show Profile  Reply
Hi Ralf

What was the exception?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: