示例#1
0
        public void DrawBitmap(D2DBitmap bitmap, D2DRect destRect, FLOAT opacity = 1,
                               D2DBitmapInterpolationMode interpolationMode      = D2DBitmapInterpolationMode.Linear)
        {
            var srcRect = new D2DRect(0, 0, bitmap.Width, bitmap.Height);

            this.DrawBitmap(bitmap, destRect, srcRect, opacity, interpolationMode);
        }
示例#2
0
 public void BeginRender(D2DBitmap bitmap)
 {
     D2D.BeginRenderWithBackgroundBitmap(this.Handle, bitmap.Handle);
 }
示例#3
0
 public void DrawBitmap(D2DBitmap bitmap, D2DRect destRect, D2DRect srcRect, FLOAT opacity = 1,
                        D2DBitmapInterpolationMode interpolationMode = D2DBitmapInterpolationMode.Linear)
 {
     D2D.DrawD2DBitmap(this.Handle, bitmap.Handle, ref destRect, ref srcRect, opacity, interpolationMode);
 }