Beispiel #1
0
        public void DrawImageAlphaChannelTiled(IImage image, int x, int y, bool horizontal, int maxwidth)
        {
            ImageInfo imageInfo = new ImageInfo();
            image.GetImageInfo(out imageInfo);

            if (horizontal)
            {
                int width = Math.Max((int)imageInfo.Width, maxwidth);
                Rectangle rc = new Rectangle(x, y, x + width, (int)imageInfo.Height + y);
                image.Draw(_hdc, ref rc, IntPtr.Zero);
            }
            else
            {
                throw new NotImplementedException();
            }
        }
Beispiel #2
0
 public void DrawImageAlphaChannel(IImage image, int x, int y)
 {
     ImageInfo imageInfo = new ImageInfo();
     image.GetImageInfo(out imageInfo);
     Rectangle rc = new Rectangle(x, y, (int)imageInfo.Width + x, (int)imageInfo.Height + y);
     //Rectangle rcSrc = new Rectangle();
     image.Draw(_hdc, ref rc, IntPtr.Zero);
 }