mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed some drawing defaults for Bug #3588716
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2391 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
263bfbf158
commit
4be6799f4a
7 changed files with 87 additions and 96 deletions
|
@ -74,16 +74,16 @@ namespace Greenshot.Drawing {
|
|||
}
|
||||
|
||||
Rectangle rect = GuiRectangle.GetGuiRectangle(this.Left, this.Top, this.Width, this.Height);
|
||||
|
||||
if (!Color.Transparent.Equals(fillColor)) {
|
||||
|
||||
if (Colors.IsVisible(fillColor)) {
|
||||
using (Brush brush = new SolidBrush(fillColor)) {
|
||||
graphics.FillRectangle(brush, rect);
|
||||
}
|
||||
}
|
||||
|
||||
if (lineThickness > 0) {
|
||||
using (Pen pen = new Pen(lineColor)) {
|
||||
pen.Width = lineThickness;
|
||||
|
||||
graphics.SmoothingMode = SmoothingMode.HighSpeed;
|
||||
if (lineVisible) {
|
||||
using (Pen pen = new Pen(lineColor, lineThickness)) {
|
||||
graphics.DrawRectangle(pen, rect);
|
||||
}
|
||||
}
|
||||
|
@ -103,8 +103,7 @@ namespace Greenshot.Drawing {
|
|||
|
||||
// check the rest of the lines
|
||||
if (lineThickness > 0) {
|
||||
using (Pen pen = new Pen(Color.White)) {
|
||||
pen.Width = lineThickness;
|
||||
using (Pen pen = new Pen(Color.White, lineThickness)) {
|
||||
using (GraphicsPath path = new GraphicsPath()) {
|
||||
path.AddRectangle(rect);
|
||||
return path.IsOutlineVisible(x, y, pen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue