Loading...

Type Mismatch on ColorGetARGBFromARGBValue

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Type Mismatch on ColorGetARGBFromARGBValue

Postby britnis » Thu Nov 26, 2009 7:04 am

Hi Loic,

I am using Gd picture pro version 5.9.3. I am facing issues with drawcircle function. A type-mismatch error occurs with the following code:

lGdStatus = Imaging1.DrawCircle(lrefx, lrefY, lDiameter, Imaging1.ColorGetARGBFromARGBValue(nARGBColor, 255, 0, 0, 0), lDiameter / 2, False)

The compiler says the type mismatch is on the function ColorGetARGBFromARGBValue. Please guide me through this issue.

Regards.
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm

Re: Type Mismatch on ColorGetARGBFromARGBValue

Postby Loïc » Thu Nov 26, 2009 9:22 am

Hi,

You are using the wrong method.

Try this:

Code: Select all
lGdStatus = Imaging1.DrawCircle(lrefx, lrefY, lDiameter, Imaging1.ARGB( 255, 0, 0, 0), lDiameter / 2, False)


Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Type Mismatch on ColorGetARGBFromARGBValue

Postby britnis » Thu Nov 26, 2009 12:39 pm

Thanks for the reply Loic.

The type mismatch error doesnot occur now. But the requirement is that, the previous version of my tool uses Gd Picture pro 3.8.x version which has a code like the below one:

Code: Select all
lGdStatus = oGdPicture.DrawCircle(lrefx, lrefY, lDiameter, oGdPicture.ColorGetARGBValueFromARGB(255, 255, 0, 0), lDiameter / 2)


Code: Select all
lGdStatus = oGdPicture.DrawText(strText, lmousex, lmousey, 20, 2, oGdPicture.ColorGetARGBValueFromARGB(150, 255, 0, 0))


This performs the following operation:

Based on the color and quality of the Image loaded to the viewer, the annotation text color is selected. That is, if the page is while then the color of the annotation text will be black. Else, the color of the text will be red.

This will not be performed by the Imaging1.argb(255,0,0,0). Please let me know, if the function Imaging1.ColorGetARGBFromARGBValue is similar to the ogdpicture.ColorGetARGBValueFromARGB.

If these functions are not similar, then please suggest me a similar function for this functionality.

Regards.
Attachments
QUERY.jpg
Sample Annotation images for reference
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm

Re: Type Mismatch on ColorGetARGBFromARGBValue

Postby britnis » Thu Nov 26, 2009 12:42 pm

Sorry a Typeout error on the previous post:

"
This performs the following operation:

Based on the color and quality of the Image loaded to the viewer, the annotation text color is selected. That is, if the page is while then the color of the annotation text will be black. Else, the color of the text will be red.
"

The correct sentence is "if the page is WHITE then the color....."

Regards.
britnis
 
Posts: 18
Joined: Tue Sep 02, 2008 12:47 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest