Using System.Drawing for (Direct)X11 ref: (IPrimitives).