Beispiel #1
0
        public void DrawImage(Image2D image, Vector2 location)
        {
            var previous = NativeDeviceContext.Transform;

            NativeDeviceContext.Transform = Matrix3x2.Multiply(NativeDeviceContext.Transform, Matrix3x2.Translation(new SharpDX.Vector2(location.X, location.Y)));
            NativeDeviceContext.DrawBitmap(image.nativeBitmap, 1.0f, BitmapInterpolationMode.Linear);
            NativeDeviceContext.Transform = previous;
        }