示例#1
0
文件: Container.cs 项目: tig/winprint
        // -----

        private void DrawBackgroundScaled(UIntPtr hdc, Utf8Str image, background_repeat repeat, ref web_color color, ref position pos, ref border_radiuses borderRadiuses, ref position borderBox, bool isRoot)
        {
            pos.Scale(ScaleFactor);
            borderRadiuses.Scale(ScaleFactor);
            borderBox.Scale(ScaleFactor);
            DrawBackground(hdc, Utf8Util.Utf8PtrToString(image), repeat, ref color, ref pos, ref borderRadiuses, ref borderBox, isRoot);
        }
示例#2
0
文件: Container.cs 项目: tig/winprint
        // -----

        private void DrawTextScaled(Utf8Str text, UIntPtr font, ref web_color color, ref position pos)
        {
            pos.Scale(ScaleFactor);
            DrawText(Utf8Util.Utf8PtrToString(text), font, ref color, ref pos);
        }
示例#3
0
文件: Container.cs 项目: tig/winprint
        // -----

        private void DrawBordersScaled(UIntPtr hdc, ref borders borders, ref position draw_pos, bool root)
        {
            borders.Scale(ScaleFactor);
            draw_pos.Scale(ScaleFactor);
            DrawBorders(hdc, ref borders, ref draw_pos, root);
        }