internal void LoadOptimizedBackgroundImage(Bitmap original) { if (backgroundImage != null) { backgroundImage.Dispose(); backgroundImage = null; } backgroundImage = BitmapPainter.BuildImageFromSkin(original, Width, Height, defaultMargins); }
internal override void LoadBackground() { base.LoadBackground(); if (textField != null) { textField.Dispose(); textField = null; } textField = BitmapPainter.BuildImageFromSkin(searchField, Width - Distance * 2, searchTextHeight + 4, new SkinOffset(12, 12, 12, 12)); }