AcTools.Render.Base.BaseRenderer.Shot C# (CSharp) Метод

Shot() публичный Метод

public Shot ( int multipler ) : Image
multipler int
Результат Image
        public virtual Image Shot(int multipler) {
            var width = Width;
            var height = Height;

            Width = width * multipler;
            Height = height * multipler;
            Draw();

            Width = width;
            Height = height;

            var stream = new System.IO.MemoryStream();
            Texture2D.ToStream(DeviceContext, _renderBuffer, ImageFileFormat.Jpg, stream);
            stream.Position = 0;
            return Image.FromStream(stream);
        }