×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    8

    Graphics in the Absence of GDI+

    Hello Nokia Devs.

    I have posted this question in numerous forums and never had a single answer, so please put your thinking hats on



    I need help drawing in using VB.net in WP8 due to the absence of GDI+.

    See the attached image.



    Imagine that the background is black. I want the points along the polyline to be the same color as the gradient through which it (currently) passes, such that low level values appear green, high level values yellow and over max levels in red.

    I think OpacityMasks might be the way to go, but the examples I have found use the DrawingGroup class which (as far as I can see) is absent from WP8.

    Hope you can help.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Graphics in the Absence of GDI+

    Pen has a Brush, and it seems to do exactly what you need. See http://msdn.microsoft.com/en-us/libr...pen.brush.aspx

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    8

    Re: Graphics in the Absence of GDI+

    That example is similar to the one I found but I can't see GeometryDrawing, DrawingGroup, Pen, DrawingImage defined in WP8

  4. #4
    Registered User
    Join Date
    Jul 2011
    Posts
    20

    Re: Graphics in the Absence of GDI+

    WriteableBitmap or Canvas is the way to go. Depends on required performance. Pen/Brush/Geometries can be replaces with Canvas + Ellipse/Rectangle/Path (shapes).
    The most performant managed way is WriteableBitmap (see this amazing project http://writeablebitmapex.codeplex.com/ and blog of author http://kodierer.blogspot.com/).
    For WP8 you can managed+native solution - DrawingSurface + sharpdx/c++ dx. See this article http://www.developer.nokia.com/Commu...with_a_picture for a very basic reference.
    Alternative can be WP7 + XNA or WP8 + Monogame/XNA

Similar Threads

  1. How to kill an Application which is not responding in 5800 due to absence of 'C'
    By kamaljaiswal in forum General Development Questions
    Replies: 5
    Last Post: 2009-11-21, 06:16
  2. absence of smlcontroller.lib
    By Serhio in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2005-01-31, 11:49
  3. Graphics.copyArea() vs Image.getRGB() / Graphics.drawRGB() ?
    By akokchai in forum Mobile Java General
    Replies: 1
    Last Post: 2004-06-23, 04:47
  4. SMS Graphics ??
    By dripster82 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-02-25, 09:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×