PDA

View Full Version : vgDrawImage leaving a rect around image?



eminemence
03-13-2012, 07:38 AM
Hi,
I am drawing a VGImage using vgDrawImage,after a scale and translate transformations.
Now at some scale levels there is a filled area left besides the image, which is approx fills the area representing the difference in the original and scaled version of the image.
Any hint why this is happening?
Thanks in advance.

eminemence
03-14-2012, 12:14 AM
Also to mention the problem I see is like this:
The original image size is w:200, h:200 and after transformations it gets scaled to w:100, h:100. So the image gets drawn properly from 0,0 to 100,100, but there is a text color patch from 100,0 to 200,200 & one from 0,100 to 200,200. How to get rid of this patch? What am I doing wrong which makes this patch appear?

eminemence
03-18-2012, 10:12 PM
Is there any relation between the vgSetColor and vgDrawImage? As the patch am seeing is of the color which is set by calling vgSetColor before the vgDrawImage is done.

Ivo Moravec
04-03-2012, 02:26 PM
Don't think this should ever be happening - sounds like a bug somewhere (maybe in the driver). Try adding a small rotation (0.001 degrees type thing) and see if the problem goes away.