Example #1
0
 private void WriteImage(DrawImage img)
 {
     WriteTag(VexDrawTag.ImageDefinition);
     WriteBits(img.Id, idBitCount);
     WriteRect(img.SourceRectangle);
     WriteBits(img.PathId, 11);
     FlushTag();
 }
Example #2
0
        private void GetDrawImages(List <Image> images)
        {
            drawImages = new List <DrawImage>();
            paths      = new List <string>();

            foreach (Image image in images)
            {
                DrawImage di = new DrawImage(image, (uint)paths.Count);
                drawImages.Add(di);
                paths.Add(image.Path);
            }
        }
Example #3
0
 private void WriteImage(DrawImage img)
 {
     WriteTag(VexDrawTag.ImageDefinition);
     WriteBits(img.Id, idBitCount);
     WriteRect(img.SourceRectangle);
     WriteBits(img.PathId, 11);
     FlushTag();
 }
Example #4
0
        private void GetDrawImages(List<Image> images)
        {
            drawImages = new List<DrawImage>();
            paths = new List<string>();

            foreach (Image image in images)
            {
                DrawImage di = new DrawImage(image, (uint)paths.Count);
                drawImages.Add(di);
                paths.Add(image.Path);
            }
        }