Dragging works better now

This commit is contained in:
Tim Young 2017-09-17 18:18:22 -05:00
parent 1361a46b7c
commit 71cf7c19c1

View File

@ -45,6 +45,7 @@ namespace SpriteLibrary
private void LocalSetup() private void LocalSetup()
{ {
pbImageField.BackgroundImageLayout = ImageLayout.Stretch; pbImageField.BackgroundImageLayout = ImageLayout.Stretch;
pbImageField.BackgroundImage = new Bitmap(600, 800);
MyController = new SpriteController(pbImageField); MyController = new SpriteController(pbImageField);
PopulateMenu(); PopulateMenu();
UpdateMenu(); UpdateMenu();
@ -126,7 +127,7 @@ namespace SpriteLibrary
private void UpdateHighlightBox() private void UpdateHighlightBox()
{ {
int transparency = 200; int transparency = 50;
Image NewFrontImage = new Bitmap(pbImageField.BackgroundImage.Width, pbImageField.BackgroundImage.Height); Image NewFrontImage = new Bitmap(pbImageField.BackgroundImage.Width, pbImageField.BackgroundImage.Height);
Color FillColor = Color.Green; Color FillColor = Color.Green;
Brush brush = new SolidBrush(Color.FromArgb(transparency, FillColor.R, FillColor.G, FillColor.B)); Brush brush = new SolidBrush(Color.FromArgb(transparency, FillColor.R, FillColor.G, FillColor.B));