private void Update_Image() { picBox.Image = bin.Get_Image((int)numericImage.Value); if (checkTransparency.Checked) { Bitmap imaget = (Bitmap)picBox.Image; imaget.MakeTransparent(bin.Get_Palette[0]); picBox.Image = imaget; } }
public BinControl(IPluginHost pluginHost, BIN bin) { InitializeComponent(); this.bin = bin; this.pluginHost = pluginHost; ReadLanguage(); stop = true; numericImage.Maximum = bin.NumImages - 1; numericWidth.Value = bin.Get_Size(0).Width; numericHeight.Value = bin.Get_Size(0).Height; stop = false; picBox.Image = bin.Get_Image(0); }