Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/GdiTest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GdiTest/LineToDrawingArea.cs')
-rw-r--r--GdiTest/LineToDrawingArea.cs31
1 files changed, 1 insertions, 30 deletions
diff --git a/GdiTest/LineToDrawingArea.cs b/GdiTest/LineToDrawingArea.cs
index d98f932..d1a94b9 100644
--- a/GdiTest/LineToDrawingArea.cs
+++ b/GdiTest/LineToDrawingArea.cs
@@ -166,7 +166,7 @@ namespace GdiTest
GDI_Win32.LineTo(hdc, endp[i].X, endp[i].Y);
dumpText += "unsigned char line_to_case_" + (i + 1) + "[" + areas[i].W * areas[i].H + "] = \n";
- dumpText += this.dump(hdc, areas[i].X, areas[i].Y, areas[i].W, areas[i].H) + "\n";
+ dumpText += dumpPixelArea(GDI_Win32, hdc, areas[i].X, areas[i].Y, areas[i].W, areas[i].H) + "\n";
}
}
}
@@ -174,35 +174,6 @@ namespace GdiTest
return true;
}
- public String dump(IntPtr hdc, int X, int Y, int W, int H)
- {
- String text = "";
-
- Win32GDI GDI_Win32 = Win32GDI.getInstance();
-
- if (GDI_Win32.isAvailable())
- {
- text += "{\n";
- for (int y = Y; y < Y + H; y++)
- {
- text += "\t\"";
- for (int x = X; x < X + W; x++)
- {
- int p = GDI_Win32.GetPixel(hdc, x, y);
-
- if (p == 0)
- text += "\\x00";
- else
- text += "\\xFF";
- }
- text += "\"\n";
- }
- text += "};\n";
- }
-
- return text;
- }
-
public override String getDumpText()
{
return dumpText;