坐标系,可以考虑使用TransForm这个method。pixel要根据你的分辨率、point的大小,算出inch来,然后可以转换到cm或者mm等。不过,计算这个实际尺寸,一般的软件都用不到。

解决方案 »

  1.   

    ms-help://MS.NETFrameworkSDK.CHS/cpguidenf/html/_gdiplus_types_of_coordinate_systems_about.htm
      

  2.   

    可以这样考虑,比如说
    right - left = xLen;
    x0 = xLen;
    y0 = 0;
    在程序中就使用(x0, y0)作你的原点运算就可以了
      

  3.   

    1. You could search Matrix class in VS.NET documentation and its relation help.2. You could use API to transform pixel to coordinate of printer. related API are: GetDeviceCaps, SetMapMode, SetViewportExtEx, SetWindowExtEx ...
      

  4.   

    drawFormat.FormatFlags = StringFormatFlags.DirectionVertical + StringFormatFlags.DirectionRightToLeft
    用上面的属性可以指定写文字时从上到下,从右到左竖排。
      

  5.   

    能不能g.drawline(0,0,100,100)时直接就是从屏幕的右上角往左下角呢?
             /
            /
           /
          /
         /
      

  6.   

    ms-help://MS.NETFrameworkSDK.CHS/cpguidenf/html/_gdiplus_types_of_coordinate_systems_about.htm假定你想使用原点位于工作区的主体而非左上角的坐标系统。例如,需要让原点位于距工作区左边缘 100 像素、距顶部 50 像素的位置:
    myGraphics.TranslateTransform(100, 50);旋转坐标系的方向:
    Matrix myMatrix = new Matrix(-1, 0, 0, 1, 0, 0);
    myGraphics.Transform = myMatrix;
    myGraphics.TranslateTransform(100, 50);Try it.