【发布时间】:2013-01-25 12:01:27
【问题描述】:
我正在尝试关注这个article,它很容易实现text over image,现在我的问题是在上面提到的文章中,图像水印被放置在 10 像素左 那么我如何将图像类似于右上角、中上、左中、中、右中以及与底部相似。
这是放置在右上角的方式:
int xPosOfWm = ((phWidth - wmWidth)-10);
int yPosOfWm = 10;
grWatermark.DrawImage(
imgWatermark,
new Rectangle(
xPosOfWm, yPosOfWm,
wmWidth, wmHeight
),
0, 0,
wmWidth, wmHeight,
GraphicsUnit.Pixel,
imageAttributes
);
【问题讨论】:
标签: asp.net image position watermark