4using System.Drawing.Imaging;
100 Main.CaptureModeDisabled =
true;
108 Main.GlobalTimerPaused =
true;
119 if (
area.Width * 16 > 4096)
121 num = 4096f / (float)(
area.Width * 16);
123 if (
area.Height * 16 > 4096)
125 num =
Math.
Min(num, 4096f / (
float)(area.Height * 16));
140 for (
int i =
area.X; i < area.X +
area.Width; i += 126)
142 for (
int j =
area.Y;
j < area.Y +
area.Height;
j += 126)
217 for (
int i = 0; i <
area.Height; i++)
219 for (
int j = 0;
j <
area.Width;
j++)
265 using Bitmap
bitmap =
new Bitmap(width, height);
285 string text = Main.SavePath + Path.DirectorySeparatorChar +
"Captures" + Path.DirectorySeparatorChar +
foldername;
297 for (
int i = 0; i < height; i++)
299 for (
int j = 0;
j < width;
j++)
308 num += texture.Width - width << 2;
314 using Bitmap
bitmap =
new Bitmap(width, height);
320 for (
int k = 0;
k < height;
k++)
322 for (
int l = 0;
l < width;
l++)
332 num3 += texture.Width - width << 2;
361 Main.GlobalTimerPaused =
false;
static readonly BlendState AlphaBlend
static readonly DepthStencilState Default
void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
unsafe void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace)
PresentationParameters PresentationParameters
SurfaceFormat BackBufferFormat
static readonly RasterizerState CullNone
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
static readonly SamplerState AnisotropicClamp
void Draw(Texture2D texture, Vector2 position, Color color)
static float Clamp(float value, float min, float max)
static void Collect(int generation)
static FileStream Create(string path)
static string Combine(string path1, string path2)
static readonly char DirectorySeparatorChar
static byte Min(byte val1, byte val2)
static double Floor(double d)
static void Copy(int[] source, int startIndex, IntPtr destination, int length)
static void Exit(object obj)
static void Enter(object obj)
static void Sleep(int millisecondsTimeout)
CaptureChunk(Microsoft.Xna.Framework.Rectangle area, Microsoft.Xna.Framework.Rectangle scaledArea)
readonly Microsoft.Xna.Framework.Rectangle ScaledArea
readonly Microsoft.Xna.Framework.Rectangle Area
bool SaveImage(int width, int height, ImageFormat imageFormat, string filename)
const string CAPTURE_DIRECTORY
const int FRAMEBUFFER_PIXEL_SIZE
RenderTarget2D _scaledFrameBuffer
const int INNER_CHUNK_SIZE
RenderTarget2D _filterFrameBuffer1
readonly object _captureLock
SamplerState _downscaleSampleState
void SaveImage(Texture2D texture, int width, int height, ImageFormat imageFormat, string foldername, string filename)
CaptureSettings _activeSettings
RenderTarget2D _frameBuffer
CaptureCamera(GraphicsDevice graphics)
RenderTarget2D _filterFrameBuffer2
void Capture(CaptureSettings settings)
unsafe void DrawBytesToBuffer(byte[] sourceBuffer, byte[] destinationBuffer, int sourceBufferWidth, int destinationBufferWidth, Microsoft.Xna.Framework.Rectangle area)
Queue< CaptureChunk > _renderQueue
static FilterManager Scene
static string GetTextValue(string key)
static bool TryCreatingDirectory(string folderPath)