示例#1
0
 private void WriteImage(DrawImage img)
 {
     WriteTag(VexDrawTag.ImageDefinition);
     WriteBits(img.Id, idBitCount);
     WriteRect(img.SourceRectangle);
     WriteBits(img.PathId, 11);
     FlushTag();
 }
示例#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);
            }
        }
示例#3
0
 private void WriteImage(DrawImage img)
 {
     WriteTag(VexDrawTag.ImageDefinition);
     WriteBits(img.Id, idBitCount);
     WriteRect(img.SourceRectangle);
     WriteBits(img.PathId, 11);
     FlushTag();
 }
示例#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);
            }
        }