Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //the size of the entire button
- borderRectangle = buttonSize;
- //the inner portion will be 90 percent the size of the button, leaving a 10 percent border
- double innerW = borderRectangle.Width * .9;
- double innerH = borderRectangle.Height * .9;
- double innerX = borderRectangle.Center.X - (innerW / 2);
- double innerY = borderRectangle.Center.Y - (innerH / 2);
- //it'll be set to having the same center point as the borderRect
- innerRectangle = new Rectangle((int)innerX, (int)innerY, (int)innerW, (int)innerH );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement