コード例 #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
ファイル: Structs.cs プロジェクト: tig/winprint
 public void Scale(int scaleFactor)
 {
     left.Scale(scaleFactor);
     top.Scale(scaleFactor);
     right.Scale(scaleFactor);
     bottom.Scale(scaleFactor);
     radius.Scale(scaleFactor);
 }