Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
Offline fg_garda  
#1 Posted : Thursday, May 30, 2013 11:49:15 AM(UTC)

Joined: 3/18/2013(UTC)
Posts: 29

Thanks: 5 times
Whether I draw a line over a picture (a png generated from a jpg), the line appears black even if I set a red color.
To maintain the original color you need to add a second image and leave it transparent.
Have you the same problem?
Here the sample project (v0.9.8.0; Win8; VS2012).


public class Game : Entity
  public Game(ContentLoader content, ScreenSpace screen)
	 var view = screen.Viewport;

	 new Sprite(content.Load<Image>("Background"), view);                  
	 // new Sprite(content.Load<Image>("Empty"), view);
	 new Sprite(content.Load<Image>("White"), view).AlphaValue = 0f; 

	 new DeltaEngine.Rendering.Shapes.Line2D(view.TopLeft, view.BottomRight, Color.Red);

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline elasto  
#2 Posted : Thursday, May 30, 2013 12:10:59 PM(UTC)

Joined: 8/23/2011(UTC)
Posts: 245

Thanks: 6 times
Was thanked: 12 time(s) in 11 post(s)
Hi fg_garda,

I'm pretty sure this was fixed on Saturday, so should work properly following this week's release.

I downloaded your project and ran it using our latest engine and it drew a red line across the image even with the Empty Sprite commented out, so it looks to me that it's all working properly.

Thanks for the bug report though!

- Phil
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.042 seconds.