Hi ThinkGeo,
I am using GeoCanvas.DrawTextWithWorldCoordinate to draw text on Feature locations in a InMemoryFeatureLayer. However it does not accept any paramters for Halo pen.?
Is there other way to acheive that halo effect on text.
Regards,
Anil
Hi ThinkGeo,
I am using GeoCanvas.DrawTextWithWorldCoordinate to draw text on Feature locations in a InMemoryFeatureLayer. However it does not accept any paramters for Halo pen.?
Is there other way to acheive that halo effect on text.
Regards,
Anil
Anil,
Thank you for your post, yes, I think this is a problem that we didn’t noticed.
We have fixed this by overload the DrawTextWithWorldCoordinate, you can download the newest dlls in next Monday.
Any more questions please feel free to let me know.
Regards,
Gary
Hi Gary,
I downloaded version 5.0.101 build and noticed following problem
1) Input params for World location are now upper left X,Y instead of center. This results in text being drawn at offset. (See attached fig illustrating the descrepancy between 5.0.40 and 5.0101)
Regards,
Anil
TextLocationUsing5.0101.zip (22.4 KB)
Anil,
Thank you for your information, we don’t change the location I think, so which class you are using to drawtext?
Regards,
Gary
Hi Gary,
I am using GeoCanva class. method DrawTextWithWorldCoordinate().
Another I notices the size of text seems to be smaller than one using 5.040.
Regards,
Anil
Hi,Anil
The GeoCanvas is a base class, and the drawtext method in it is abstract, you can use getType to know which sub class you are using and then we can find out what’s the position problem in that class.
Regards,
Gary
Hi Gary,
The Type I am getting is GdiPlusGeoCanvas.
The problem is I want to center the text and it working ok in 5.0.40 but not in 5.0.101
Regards,
Anil
Anil,
Thank you for the information, I will tell you the result as soon as possible.
Regards,
Gary
Anil,
Sorry for waiting, I have checked the code over and over again, I still can’t understand where is the root cause, could you please provide a sample that we can recreate it?
Regards,
Gary