Results 1 to 2 of 2

Thread: Combining Images and Paths

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Combining Images and Paths

    Hi,

    I want to use together raster and vector graphics, I have the following situation:

    - When I use vgimagedraw alone (no path drawing) a 32 sARGB image is displayed correctly, with the alpha channel OK (I can see the clear color just OK)
    - If I draw some paths, even just one simple path the image is drawn but the alpha channel is ignored. The pixels that should appear transparent are now solid black for instance

    Is this something expected? do I need to do something to handle both imges + paths? To me Sounds more like a bug. I am using Amanith PC emulation, if so, the only option would be to report it...

    Thanks
    Ioseph

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Re: Combining Images and Paths

    Problem got solved by changing the blend mode to be VG_BLEND_SRC_OVER before drawing the image. The libraries I was using where modifying the blend mode so I didn't noticed at the beginning.

    Ioseph

Similar Threads

  1. combining webgl with anaglyph
    By Friba77 in forum Developers Coding:Beginner
    Replies: 3
    Last Post: 06-18-2012, 12:55 PM
  2. Replies: 7
    Last Post: 05-23-2007, 03:32 AM

Posting Permissions

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