Having trouble developing on a virtual PC?

I am using a virtual PC (with a remote connection to the desktop) for my project. The project uses some of the features of GDI +.

Now, apparently, a problem arises when displaying a graphical object on a real and virtual PC.

A simple example:

public class Form1 : Form { private void Form1_Paint(System.Object sender, System.Windows.Forms.PaintEventArgs e) {   Graphics g = e.Graphics;     using (Pen pen = new Pen(Color.Blue, 3)) {     g.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias;     g.DrawLine(pen, 10, 10, 50, 150);     g.SmoothingMode = Drawing2D.SmoothingMode.None;     g.DrawLine(pen, 30, 10, 70, 150);       } } } 

Result:

 Virtual PC Real PC 

alt text http://lh6.ggpht.com/_1TPOP7DzY1E/S45E8Ns3X0I/AAAAAAAADFE/3SROt2yQz_w/s800/Capture4.png

So, for "virtual" development should be taken into account. Have you had similar situations?

+2
user-interface virtualization gdi +
source share
1 answer

This is a problem with the RDC, not the virtual desktop. For example, an RDC may remove anti-aliasing to achieve lower data transfer.

Solutions:

  • Do not use RDC, open your virtual machine in VMWare / independently
  • RDC has settings in which you can disable some functions, try to enable all of them / establish the "best" Internet connection
+4
source share

All Articles