private void ReloadGrid(FieldItemLayer layer, int topX, int topY) { var transparency = TR_Transparency.Value / 100d; var t = ((int)(0xFF * transparency) << 24) | 0x00FF_FFFF; PB_Acre.Image = FieldItemSpriteDrawer.GetBitmapLayerAcre(layer, topX, topY, AcreScale, Scale1, ScaleX, ScaleAcre, t); }
private void Menu_SavePNG_Click(object sender, EventArgs e) { var pb = WinFormsUtil.GetUnderlyingControl <PictureBox>(sender); if (pb?.Image == null) { WinFormsUtil.Alert(MessageStrings.MsgNoPictureLoaded); return; } const string name = "map"; var bmp = FieldItemSpriteDrawer.GetBitmapItemLayer(Map.Items.Layer1); using var sfd = new SaveFileDialog { Filter = "png file (*.png)|*.png|All files (*.*)|*.*", FileName = $"{name}.png", }; if (sfd.ShowDialog() != DialogResult.OK) { return; } bmp.Save(sfd.FileName, ImageFormat.Png); }
private void ReloadMap() { var transparency = TR_Transparency.Value / 100d; var t = ((int)(0xFF * transparency) << 24) | 0x00FF_FFFF; PB_Map.Image = FieldItemSpriteDrawer.GetBitmapLayer(Layer, X, Y, Map, MapReticle, t); }
private void ReloadGrid(FieldItemLayer layer, int topX, int topY) { PB_Acre.Image = FieldItemSpriteDrawer.GetBitmapLayerAcre(layer, topX, topY, AcreScale, Scale1, ScaleX, ScaleAcre); }
private void ReloadMap() { PB_Map.Image = FieldItemSpriteDrawer.GetBitmapLayer(Layer, X, Y, Map, MapReticle); }
private Bitmap GetMapWithReticle(int topX, int topY, int t, FieldItemLayer layer) { return(FieldItemSpriteDrawer.GetBitmapItemLayer(layer, topX, topY, PixelsItemMap, MapReticle, t)); }
private Bitmap GetLayerAcre(int topX, int topY, int t) { var layer = Map.CurrentLayer; return(FieldItemSpriteDrawer.GetBitmapItemLayerAcre(layer, topX, topY, AcreScale, PixelsItemAcre1, PixelsItemAcreX, ScaleAcre, t)); }