Example #1
0
        private void ParseDefineBitsLossless(DefineBitsLosslessTag tag)
        {
            //DDW.Vex.ImageFill bf = new DDW.Vex.ImageFill();
            //string path = v.ResourceFolder + @"/" + VexObject.BitmapPrefix + tag.CharacterId + ".png";

            //WriteLosslessBitmapToDisk(path, tag);

            //Image img = new Vex.Image(path, v.NextId());
            //img.Id = tag.CharacterId;
            //img.StrokeBounds = new Rectangle(0, 0, tag.Width, tag.Height);

            //bitmapPaths.Add(img.Id, path);
            //v.Definitions.Add(img.Id, img);
        }
Example #2
0
		private void WriteLosslessBitmapToDisk(string path, DefineBitsLosslessTag tag)
		{
            IOUtils.EnsurePath(path);
			System.Drawing.Bitmap bmp = tag.GetBitmap();
			bmp.Save(path);
			bmp.Dispose();
		}