コード例 #1
0
        public Bitmap CreateCollectiveImage()
        {
            int    bitmap_width  = 16 * 5;
            int    bitmap_height = 16384;
            Bitmap bitmap        = new Bitmap(bitmap_width, bitmap_height);

            using (Graphics gfx = Graphics.FromImage(bitmap))
            {
                if (BaseImage != null)
                {
                    gfx.DrawImage(BaseImage.ToBitmap(), new Point(0, 0));
                }
                if (IDImage != null)
                {
                    gfx.DrawImage(IDImage.ToBitmap(), new Point(16, 0));
                }
                if (CollisionMaskA != null)
                {
                    gfx.DrawImage(CollisionMaskA.ToBitmap(), new Point(32, 0));
                }
                if (CollisionMaskB != null)
                {
                    gfx.DrawImage(CollisionMaskB.ToBitmap(), new Point(48, 0));
                }
                if (InternalImage != null)
                {
                    gfx.DrawImage(InternalImage.ToBitmap(), new Point(64, 0));
                }
            }
            return(bitmap);
        }