Ticket T206063
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Improve polygon rendering quality in GdiPlus mode

MapEllipse quality

created 10 years ago

Hello,
I have a strange problem using MapEllipse objects on a Map (with OpenStreetMap).
I have attached a screenshot. On the left the result on my development pc, the ellipse is perfect. On the right the result on other pc, the ellipse has very low quality.
I have used 3 different pc (1 development and 2 others) but only on the pc with development environment there is the perfect ellipse.
Have you any suggestion?
Thanks a lot

Comments (2)
DevExpress Support Team 10 years ago

    Hi Dino,

    Thank you for your report. Use the following code to detect the actual render mode on the problematic machine:

    C#
    DevExpress.XtraMap.Services.IInnerMapService svc = ((IServiceProvider)mapControl1).GetService(typeof(DevExpress.XtraMap.Services.IInnerMapService)) as DevExpress.XtraMap.Services.IInnerMapService; MessageBox.Show(DevExpress.XtraMap.Native.MapUtils.GetActualRenderMode(svc.Map).ToString());

    If the actual mode is set to GdiPlus, try switching to the DirectX render mode (see the MapControl.RenderMode property).

      On the map control the render mode was Auto and using your suggestion I see that the actual render mode is DirectX where the ellipse is perfect and GdiPlus where is low quality. I try to change the RenderMode from Auto to DirectX but the actual render mode is always GdiPlus so ellipse isn't perfect.
      Thanks a lot

      Answers approved by DevExpress Support

      created 10 years ago (modified 10 years ago)

      Hi Dino,

      From what I gather, the DirectX render mode cannot be enabled on the problematic machine. We have acknowledged the GDI+ rendering issue and included the corresponding feature in our To-Do list:

      Improve polygons rendering quality in GdiPlus mode.

      In the meantime, please clarify whether or not you have installed DirectX on the machine and try to re-install graphics card drivers. Please also check to see if it is possible to resolve this issue using the recommendations from this article.

        Show previous comments (12)
        DevExpress Support Team 10 years ago

          Hi Dino,

          We have registered a separate ticket regarding the incorrect DirectX detection procedure when a videocard does not support the anti-aliasing feature:

          DirectX render mode is not enabled if the video card does not support anti-aliasing feature.

          However, it appears that the second machine with the integrated videocard does not support hardware acceleration in DirectX mode. Therefore, forcing the DirectX render mode is not appropriate in this situation.

            Ok, let me know if you wish I run some test.
            Thank you very much for your help

            DevExpress Support Team 10 years ago

              You are always welcome, Dino.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.