Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
926dfd2d72 | ||
|
|
999694c4b8 |
No files matched your search
@@ -163,9 +163,12 @@ jobs:
|
||||
--filename "CaptureImage-$env:VERSION-sbom.cdx.json" --output-format Json `
|
||||
--set-name CaptureImage --set-version $env:VERSION --exclude-test-projects
|
||||
Push-Location dist
|
||||
Get-ChildItem -File | Sort-Object Name | ForEach-Object {
|
||||
# Hash first, then write: Out-File creates SHA256SUMS.txt as soon as the pipeline
|
||||
# starts, so it would otherwise list (and fail to read) its own output file.
|
||||
$sums = Get-ChildItem -File | Where-Object Name -ne 'SHA256SUMS.txt' | Sort-Object Name | ForEach-Object {
|
||||
"$((Get-FileHash $_.Name -Algorithm SHA256).Hash.ToLowerInvariant()) $($_.Name)"
|
||||
} | Out-File SHA256SUMS.txt -Encoding utf8
|
||||
}
|
||||
$sums | Out-File SHA256SUMS.txt -Encoding utf8
|
||||
Get-Content SHA256SUMS.txt
|
||||
Pop-Location
|
||||
|
||||
|
||||
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.0.1] - 2026-10-19
|
||||
|
||||
### Fixed
|
||||
|
||||
- With **Clipboard mode: copy only**, a capture that couldn't be copied (for example while another
|
||||
app was holding the clipboard) was reported as a success although nothing was saved or copied.
|
||||
It now shows an error.
|
||||
- On HDR displays, pixels a game reported as infinitely bright came out black instead of white, and
|
||||
an invalid colour value stopped the highlights next to it from rolling off smoothly.
|
||||
- A Steam library folder that couldn't be read (for example on a disconnected drive) broke Steam
|
||||
detection for every window until the app was restarted. That library is now skipped, and a failed
|
||||
scan is tried again a minute later.
|
||||
- Text without a style of its own — such as the component names and the disclaimer headings on the
|
||||
About page — was drawn in a dim grey instead of the theme's text colour, which was hard to read in
|
||||
the dark theme.
|
||||
- The capture library lays its thumbnails out from the left edge instead of spreading wide gaps
|
||||
around them.
|
||||
- About: the capture notice no longer mentions the GDI fallback that 2.0.0 removed, and the
|
||||
translation notice points to the folder where the language files now live.
|
||||
|
||||
## [2.0.0] - 2026-10-19
|
||||
|
||||
CaptureImage 2.0 is a rewrite of the app around the same idea: arm the hotkeys, press one in
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="Version (single source of truth — the release workflow checks the tag against it)">
|
||||
<Version>2.0.0</Version>
|
||||
<Version>2.0.1</Version>
|
||||
<AssemblyVersion>$([System.Text.RegularExpressions.Regex]::Match('$(Version)', '^\d+\.\d+\.\d+').Value).0</AssemblyVersion>
|
||||
<FileVersion>$(AssemblyVersion)</FileVersion>
|
||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
||||
|
||||
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 203 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
@@ -356,7 +356,7 @@
|
||||
"captureimage.infrastructure": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "[10.0.13, )",
|
||||
"Serilog": "[4.4.0, )",
|
||||
"SkiaSharp": "[4.153.1, )",
|
||||
@@ -369,8 +369,8 @@
|
||||
"captureimage.ui": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.ViewModels": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"CaptureImage.ViewModels": "[2.0.1, )",
|
||||
"CommunityToolkit.Mvvm": "[8.4.2, )",
|
||||
"H.NotifyIcon.Wpf": "[2.4.1, )",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "[10.0.13, )",
|
||||
@@ -381,7 +381,7 @@
|
||||
"captureimage.viewmodels": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"CommunityToolkit.Mvvm": "[8.4.2, )",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "[10.0.13, )",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "[10.0.13, )"
|
||||
|
||||
@@ -39,4 +39,7 @@ public enum CaptureError
|
||||
|
||||
/// <summary>Windows.Graphics.Capture is unavailable on this system.</summary>
|
||||
NotSupported = 12,
|
||||
|
||||
/// <summary>A clipboard-only capture could not be copied (another app may hold the clipboard).</summary>
|
||||
ClipboardFailure = 13,
|
||||
}
|
||||
@@ -28,6 +28,7 @@ public static class HdrToneMapper
|
||||
public const float KneeStart = 0.8f;
|
||||
|
||||
private const int LutSize = 4096;
|
||||
private static readonly float MaxHalf = (float)Half.MaxValue;
|
||||
private static readonly byte[] SrgbLut = BuildSrgbLut();
|
||||
|
||||
/// <summary>Return an 8-bit BGRA rendition of <paramref name="frame"/>; SDR frames are returned unchanged.</summary>
|
||||
@@ -55,9 +56,9 @@ public static class HdrToneMapper
|
||||
var dst = output.AsSpan(y * outStride, outStride);
|
||||
for (var x = 0; x < width; x++)
|
||||
{
|
||||
var r = Math.Max(0f, (float)row[x * 4] * scale);
|
||||
var g = Math.Max(0f, (float)row[(x * 4) + 1] * scale);
|
||||
var b = Math.Max(0f, (float)row[(x * 4) + 2] * scale);
|
||||
var r = Channel(row[x * 4], scale);
|
||||
var g = Channel(row[(x * 4) + 1], scale);
|
||||
var b = Channel(row[(x * 4) + 2], scale);
|
||||
|
||||
var max = Math.Max(r, Math.Max(g, b));
|
||||
if (max > KneeStart)
|
||||
@@ -94,6 +95,16 @@ public static class HdrToneMapper
|
||||
public static float LinearToSrgb(float linear) =>
|
||||
linear <= 0.0031308f ? 12.92f * linear : (1.055f * MathF.Pow(linear, 1f / 2.4f)) - 0.055f;
|
||||
|
||||
/// <summary>
|
||||
/// One linear channel, rescaled. Negative values and NaN become 0; +infinity is capped at the
|
||||
/// largest half value so the highlight shoulder takes it to white (∞ / ∞ would give NaN, i.e. black).
|
||||
/// </summary>
|
||||
private static float Channel(Half value, float scale)
|
||||
{
|
||||
var linear = (float)value;
|
||||
return linear > 0f ? Math.Min(linear, MaxHalf) * scale : 0f;
|
||||
}
|
||||
|
||||
private static byte Encode(float linear)
|
||||
{
|
||||
var index = (int)((linear * (LutSize - 1)) + 0.5f);
|
||||
|
||||
@@ -410,6 +410,11 @@ public sealed partial class CaptureCoordinator : IDisposable
|
||||
|
||||
var copied = clipboardMode != ClipboardMode.None
|
||||
&& await _clipboard.CopyImageAsync(displayFrame, CancellationToken.None).ConfigureAwait(false);
|
||||
if (clipboardMode == ClipboardMode.Copy && !copied)
|
||||
{
|
||||
// Nothing was written to disk either, so this is a failure, not a silent "success".
|
||||
throw new CaptureException(CaptureError.ClipboardFailure, "The image could not be copied to the clipboard.");
|
||||
}
|
||||
|
||||
AfterCapture(settings, displayFrame, record, copied, title);
|
||||
return new CaptureOutcome(record is null ? CaptureOutcomeKind.Copied : CaptureOutcomeKind.Saved, mode) { Record = record };
|
||||
|
||||
@@ -10,13 +10,19 @@ namespace CaptureImage.Infrastructure.Steam;
|
||||
|
||||
/// <summary>
|
||||
/// Maps executables to installed Steam apps by reading <c>libraryfolders.vdf</c> and the
|
||||
/// <c>appmanifest_*.acf</c> files of every library. Scanned once, lazily, thread-safe.
|
||||
/// <c>appmanifest_*.acf</c> files of every library. Scanned once, lazily, thread-safe; a scan that
|
||||
/// fails is retried a minute later rather than failing every lookup from then on.
|
||||
/// </summary>
|
||||
public sealed partial class SteamLibraryScanner : ISteamDetector
|
||||
{
|
||||
private static readonly TimeSpan RetryDelay = TimeSpan.FromMinutes(1);
|
||||
|
||||
private readonly Func<string?> _steamRoot;
|
||||
private readonly ILogger<SteamLibraryScanner> _logger;
|
||||
private readonly Lazy<IReadOnlyList<SteamLibrary>> _libraries;
|
||||
private readonly TimeProvider _time;
|
||||
private readonly Lock _gate = new();
|
||||
private IReadOnlyList<SteamLibrary>? _libraries;
|
||||
private DateTimeOffset _retryAt = DateTimeOffset.MinValue;
|
||||
|
||||
/// <summary>Production constructor: Steam's install folder comes from the registry.</summary>
|
||||
public SteamLibraryScanner(ILogger<SteamLibraryScanner> logger)
|
||||
@@ -26,11 +32,45 @@ public sealed partial class SteamLibraryScanner : ISteamDetector
|
||||
|
||||
/// <param name="steamRoot">Returns Steam's install folder, or <c>null</c> when Steam isn't installed.</param>
|
||||
/// <param name="logger">Logger.</param>
|
||||
public SteamLibraryScanner(Func<string?> steamRoot, ILogger<SteamLibraryScanner> logger)
|
||||
/// <param name="timeProvider">Clock for the retry delay (tests); the system clock by default.</param>
|
||||
public SteamLibraryScanner(Func<string?> steamRoot, ILogger<SteamLibraryScanner> logger, TimeProvider? timeProvider = null)
|
||||
{
|
||||
_steamRoot = steamRoot;
|
||||
_logger = logger;
|
||||
_libraries = new Lazy<IReadOnlyList<SteamLibrary>>(LoadLibraries, LazyThreadSafetyMode.ExecutionAndPublication);
|
||||
_time = timeProvider ?? TimeProvider.System;
|
||||
}
|
||||
|
||||
/// <summary>The scanned libraries, or none while a failed scan waits for its retry.</summary>
|
||||
private IReadOnlyList<SteamLibrary> Libraries
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (_gate)
|
||||
{
|
||||
if (_libraries is not null)
|
||||
{
|
||||
return _libraries;
|
||||
}
|
||||
|
||||
var now = _time.GetUtcNow();
|
||||
if (now < _retryAt)
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return _libraries = LoadLibraries();
|
||||
}
|
||||
catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException
|
||||
or ArgumentException or NotSupportedException or InvalidOperationException)
|
||||
{
|
||||
LogScanFailed(ex);
|
||||
_retryAt = now + RetryDelay;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public SteamAppInfo? TryGetAppInfo(string executablePath)
|
||||
@@ -50,7 +90,7 @@ public sealed partial class SteamLibraryScanner : ISteamDetector
|
||||
return null;
|
||||
}
|
||||
|
||||
foreach (var library in _libraries.Value)
|
||||
foreach (var library in Libraries)
|
||||
{
|
||||
var common = Normalize(Path.Combine(library.Path, "steamapps", "common")) + Path.DirectorySeparatorChar;
|
||||
if (!normalized.StartsWith(common, StringComparison.OrdinalIgnoreCase))
|
||||
@@ -127,7 +167,19 @@ public sealed partial class SteamLibraryScanner : ISteamDetector
|
||||
return apps;
|
||||
}
|
||||
|
||||
foreach (var manifest in Directory.EnumerateFiles(steamapps, "appmanifest_*.acf"))
|
||||
List<string> manifests;
|
||||
try
|
||||
{
|
||||
manifests = [.. Directory.EnumerateFiles(steamapps, "appmanifest_*.acf")];
|
||||
}
|
||||
catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
|
||||
{
|
||||
// One unreadable library (offline drive, no permission) must not hide the others.
|
||||
LogLibraryUnreadable(ex, libraryPath);
|
||||
return apps;
|
||||
}
|
||||
|
||||
foreach (var manifest in manifests)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -162,4 +214,10 @@ public sealed partial class SteamLibraryScanner : ISteamDetector
|
||||
|
||||
[LoggerMessage(Level = LogLevel.Information, Message = "Steam scan: {LibraryCount} libraries, {AppCount} installed apps.")]
|
||||
private partial void LogScanned(int libraryCount, int appCount);
|
||||
|
||||
[LoggerMessage(Level = LogLevel.Warning, Message = "Could not read Steam library {LibraryPath}; skipping it.")]
|
||||
private partial void LogLibraryUnreadable(Exception exception, string libraryPath);
|
||||
|
||||
[LoggerMessage(Level = LogLevel.Warning, Message = "Steam scan failed; trying again in a minute.")]
|
||||
private partial void LogScanFailed(Exception exception);
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.About;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_About}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:AboutViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="AboutPage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Dashboard;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Dashboard}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:DashboardViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="DashboardPage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Library;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Library}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:LibraryViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="LibraryPage"
|
||||
mc:Ignorable="d">
|
||||
@@ -82,7 +83,7 @@
|
||||
VirtualizingPanel.VirtualizationMode="Recycling">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<ui:VirtualizingWrapPanel ItemSize="232,190" SpacingMode="Uniform" />
|
||||
<ui:VirtualizingWrapPanel ItemSize="232,190" SpacingMode="None" />
|
||||
</ItemsPanelTemplate>
|
||||
</ListBox.ItemsPanel>
|
||||
<ListBox.ItemTemplate>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Logs;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Logs}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:LogViewerViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="LogsPage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Profiles;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Profiles}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:ProfilesViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="ProfilesPage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Settings;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Settings}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:SettingsViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="SettingsPage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
xmlns:vm="clr-namespace:CaptureImage.ViewModels.Update;assembly=CaptureImage.ViewModels"
|
||||
Title="{loc:Tr Nav_Update}"
|
||||
d:DataContext="{d:DesignInstance Type=vm:UpdateViewModel}"
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
ScrollViewer.CanContentScroll="False"
|
||||
AutomationProperties.AutomationId="UpdatePage"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
"captureimage.viewmodels": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"CommunityToolkit.Mvvm": "[8.4.2, )",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "[10.0.13, )",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "[10.0.13, )"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>يُطوَّر CaptureImage بمساعدة كبيرة من مساعد برمجة يعمل بالذكاء الاصطناعي (Claude من Anthropic عبر Claude Code) في كتابة الشيفرة والاختبارات والتوثيق. يراجع المشرف كل تغيير ويختبره قبل الإصدار.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>التطوير بمساعدة الذكاء الاصطناعي</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>دعم الالتقاط</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>يمكن لـ CaptureImage التقاط معظم الألعاب النافذية وعديمة الحدود عبر Windows.Graphics.Capture، لكن ليست كل لعبة تعمل. الأسطح المحمية بـ DRM، وألعاب Direct3D 9 بالشاشة الكاملة الحصرية، والألعاب ذات خطافات anti-cheat قد تعيد إطارات سوداء أو ترفض الالتقاط. تُجرَّب آلية احتياطية GDI PrintWindow للتطبيقات القديمة. راجع docs/legal/DISCLAIMER.md §2 للقائمة الكاملة.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>يمكن لـ CaptureImage التقاط معظم الألعاب النافذية وعديمة الحدود عبر Windows.Graphics.Capture، لكن ليست كل لعبة تعمل. الأسطح المحمية بـ DRM، وألعاب Direct3D 9 بالشاشة الكاملة الحصرية، والألعاب ذات خطافات anti-cheat قد تعيد إطارات سوداء أو ترفض الالتقاط. راجع docs/legal/DISCLAIMER.md §2 للقائمة الكاملة.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>تواصل مع المطور</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>المطور</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>إخلاءات المسؤولية</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>أداة خفيفة لالتقاط الشاشة على Windows للألعاب التي لا تحتوي على مفتاح التقاط مدمج.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>مكونات الطرف الثالث</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>الترجمات</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>حزم لغة الفيتنامية والعربية واليابانية والصينية المبسطة والكورية والإسبانية والفرنسية والألمانية والبرتغالية البرازيلية والروسية مترجمة بمساعدة الآلة. قد لا تتطابق المصطلحات مع العرف المحلي، وبعض الكلمات التقنية (hotkey، toast، frame، إلخ) تُركت بالإنجليزية عمداً. نرحب بمتحدثي اللغة الأم الراغبين في المراجعة لإرسال طلبات سحب على ملفات .resx في src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>حزم لغة الفيتنامية والعربية واليابانية والصينية المبسطة والكورية والإسبانية والفرنسية والألمانية والبرتغالية البرازيلية والروسية مترجمة بمساعدة الآلة. قد لا تتطابق المصطلحات مع العرف المحلي، وبعض الكلمات التقنية (hotkey، toast، frame، إلخ) تُركت بالإنجليزية عمداً. نرحب بمتحدثي اللغة الأم الراغبين في المراجعة لإرسال طلبات سحب على ملفات .resx في src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>الإصدار</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>استعراض…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>النوافذ المفتوحة</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>تم إلغاء الالتقاط.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>تعذّر نسخ الصورة إلى الحافظة. ربما يستخدمها تطبيق آخر؛ حاول مجددًا.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>تعذّر ترميز الصورة.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>تعذّر حفظ الملف. تحقق من مجلد الإخراج والمساحة الفارغة على القرص.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>توقف برنامج تشغيل الرسومات عن الاستجابة. حاول مجددًا بعد قليل.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage wird mit erheblicher Unterstützung eines KI-Programmierassistenten (Claude von Anthropic, über Claude Code) für Code, Tests und Dokumentation entwickelt. Der Maintainer prüft und testet jede Änderung vor der Veröffentlichung.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>KI-unterstützte Entwicklung</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Aufnahmeunterstützung</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage kann die meisten Spiele im Fenster- oder randlosen Modus über Windows.Graphics.Capture aufnehmen, jedoch nicht jeden Titel. DRM-geschützte Oberflächen, exklusive Vollbild-Direct3D-9-Spiele und Titel mit Anti-Cheat-Hooks können schwarze Frames liefern oder die Aufnahme verweigern. Für Legacy-Apps wird ein GDI-PrintWindow-Fallback versucht. Vollständige Liste in docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage kann die meisten Spiele im Fenster- oder randlosen Modus über Windows.Graphics.Capture aufnehmen, jedoch nicht jeden Titel. DRM-geschützte Oberflächen, exklusive Vollbild-Direct3D-9-Spiele und Titel mit Anti-Cheat-Hooks können schwarze Frames liefern oder die Aufnahme verweigern. Vollständige Liste in docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Mit dem Entwickler verbinden</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Entwickler</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Hinweise</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Schlanke Windows-Bildschirmaufnahme für Spiele ohne integrierte Screenshot-Taste.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Drittanbieterkomponenten</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Übersetzungen</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Die Sprachpakete Vietnamesisch, Arabisch, Japanisch, vereinfachtes Chinesisch, Koreanisch, Spanisch, Französisch, Deutsch, brasilianisches Portugiesisch und Russisch wurden maschinell unterstützt. Die Terminologie entspricht möglicherweise nicht den muttersprachlichen Konventionen, und einige Fachbegriffe (hotkey, toast, frame usw.) bleiben absichtlich auf Englisch. Muttersprachler, die Korrektur lesen möchten, sind herzlich eingeladen, Pull Requests gegen die .resx-Dateien in src/CaptureImage.UI/Resources/Strings/ einzureichen.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Die Sprachpakete Vietnamesisch, Arabisch, Japanisch, vereinfachtes Chinesisch, Koreanisch, Spanisch, Französisch, Deutsch, brasilianisches Portugiesisch und Russisch wurden maschinell unterstützt. Die Terminologie entspricht möglicherweise nicht den muttersprachlichen Konventionen, und einige Fachbegriffe (hotkey, toast, frame usw.) bleiben absichtlich auf Englisch. Muttersprachler, die Korrektur lesen möchten, sind herzlich eingeladen, Pull Requests gegen die .resx-Dateien in src/CaptureImage.ViewModels/Resources/Strings/ einzureichen.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Version</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Durchsuchen…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Geöffnete Fenster</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Aufnahme abgebrochen.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>Das Bild konnte nicht in die Zwischenablage kopiert werden. Möglicherweise wird sie von einer anderen App verwendet; erneut versuchen.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>Das Bild konnte nicht kodiert werden.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>Die Datei konnte nicht gespeichert werden. Ausgabeordner und freien Speicherplatz prüfen.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>Der Grafiktreiber reagiert nicht mehr. Gleich noch einmal versuchen.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage se desarrolla con una ayuda considerable de un asistente de programación con IA (Claude de Anthropic, a través de Claude Code) para el código, las pruebas y la documentación. El responsable revisa y prueba cada cambio antes de publicarlo.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>Desarrollo asistido por IA</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Compatibilidad de captura</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage puede capturar la mayoría de los juegos en ventana o sin bordes mediante Windows.Graphics.Capture, pero no todos los títulos funcionan. Las superficies protegidas por DRM, los juegos en pantalla completa exclusiva con Direct3D 9 y los títulos con ganchos anticheat pueden devolver fotogramas en negro o rechazar la captura. Para apps antiguas se intenta un fallback con GDI PrintWindow. Consulta la lista completa en docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage puede capturar la mayoría de los juegos en ventana o sin bordes mediante Windows.Graphics.Capture, pero no todos los títulos funcionan. Las superficies protegidas por DRM, los juegos en pantalla completa exclusiva con Direct3D 9 y los títulos con ganchos anticheat pueden devolver fotogramas en negro o rechazar la captura. Consulta la lista completa en docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Conecta con el desarrollador</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Desarrollador</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Avisos legales</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Captura de pantalla ligera para Windows pensada para juegos sin tecla de captura propia.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Componentes de terceros</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Traducciones</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Los paquetes de idioma vietnamita, árabe, japonés, chino simplificado, coreano, español, francés, alemán, portugués (Brasil) y ruso están traducidos con asistencia automática. Es posible que la terminología no coincida con las convenciones nativas, y algunos términos técnicos (hotkey, toast, frame, etc.) se mantienen en inglés a propósito. Los hablantes nativos dispuestos a revisarlos pueden enviar pull requests sobre los archivos .resx en src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Los paquetes de idioma vietnamita, árabe, japonés, chino simplificado, coreano, español, francés, alemán, portugués (Brasil) y ruso están traducidos con asistencia automática. Es posible que la terminología no coincida con las convenciones nativas, y algunos términos técnicos (hotkey, toast, frame, etc.) se mantienen en inglés a propósito. Los hablantes nativos dispuestos a revisarlos pueden enviar pull requests sobre los archivos .resx en src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Versión</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Examinar…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Ventanas abiertas</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Captura cancelada.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>No se pudo copiar la imagen al portapapeles. Puede que otra aplicación lo esté usando; inténtalo de nuevo.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>No se pudo codificar la imagen.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>No se pudo guardar el archivo. Comprueba la carpeta de salida y el espacio libre en disco.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>El controlador gráfico dejó de responder. Inténtalo de nuevo en un momento.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage est développé avec l'aide importante d'un assistant de programmation IA (Claude d'Anthropic, via Claude Code) pour le code, les tests et la documentation. Le mainteneur relit et teste chaque modification avant sa publication.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>Développement assisté par IA</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Prise en charge de la capture</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage peut capturer la plupart des jeux fenêtrés et sans bordure via Windows.Graphics.Capture, mais pas tous. Les surfaces protégées par DRM, les jeux Direct3D 9 en plein écran exclusif et les titres avec hooks anti-triche peuvent renvoyer des images noires ou refuser la capture. Un repli GDI PrintWindow est tenté pour les applications héritées. Voir docs/legal/DISCLAIMER.md §2 pour la liste complète.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage peut capturer la plupart des jeux fenêtrés et sans bordure via Windows.Graphics.Capture, mais pas tous. Les surfaces protégées par DRM, les jeux Direct3D 9 en plein écran exclusif et les titres avec hooks anti-triche peuvent renvoyer des images noires ou refuser la capture. Voir docs/legal/DISCLAIMER.md §2 pour la liste complète.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Contactez le développeur</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Développeur</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Avertissements</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Capture d'écran Windows légère pour les jeux sans touche de capture intégrée.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Composants tiers</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Traductions</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Les packs de langue vietnamien, arabe, japonais, chinois simplifié, coréen, espagnol, français, allemand, portugais (Brésil) et russe sont assistés par machine. La terminologie peut ne pas correspondre aux conventions natives, et certains termes techniques (hotkey, toast, frame, etc.) sont volontairement conservés en anglais. Les locuteurs natifs prêts à relire sont chaleureusement invités à soumettre des pull requests sur les fichiers .resx dans src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Les packs de langue vietnamien, arabe, japonais, chinois simplifié, coréen, espagnol, français, allemand, portugais (Brésil) et russe sont assistés par machine. La terminologie peut ne pas correspondre aux conventions natives, et certains termes techniques (hotkey, toast, frame, etc.) sont volontairement conservés en anglais. Les locuteurs natifs prêts à relire sont chaleureusement invités à soumettre des pull requests sur les fichiers .resx dans src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Version</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Parcourir…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Fenêtres ouvertes</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Capture annulée.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>Impossible de copier l'image dans le presse-papiers. Une autre application l'utilise peut-être ; réessayez.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>Impossible d'encoder l'image.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>Impossible d'enregistrer le fichier. Vérifiez le dossier de sortie et l'espace disque disponible.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>Le pilote graphique ne répond plus. Réessayez dans un instant.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage は、コード・テスト・ドキュメントの作成に AI コーディングアシスタント(Anthropic の Claude、Claude Code 経由)の大きな助けを借りて開発されています。すべての変更はリリース前にメンテナーがレビューし、テストしています。</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>AI 支援開発</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>キャプチャ対応</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage は Windows.Graphics.Capture により多くのウィンドウ・ボーダーレスゲームをキャプチャできますが、すべてのタイトルで動作するわけではありません。DRM 保護されたサーフェス、排他的フルスクリーンの Direct3D 9 ゲーム、アンチチートフックを持つタイトルは、黒フレームを返したりキャプチャを拒否することがあります。レガシーアプリには GDI PrintWindow フォールバックを試みます。完全な一覧は docs/legal/DISCLAIMER.md §2 を参照してください。</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage は Windows.Graphics.Capture により多くのウィンドウ・ボーダーレスゲームをキャプチャできますが、すべてのタイトルで動作するわけではありません。DRM 保護されたサーフェス、排他的フルスクリーンの Direct3D 9 ゲーム、アンチチートフックを持つタイトルは、黒フレームを返したりキャプチャを拒否することがあります。完全な一覧は docs/legal/DISCLAIMER.md §2 を参照してください。</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>開発者とつながる</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>開発者</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>免責事項</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>スクリーンショット機能のないゲーム向けの軽量 Windows 画面キャプチャツール。</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>サードパーティコンポーネント</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>翻訳について</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>ベトナム語、アラビア語、日本語、中国語(簡体)、韓国語、スペイン語、フランス語、ドイツ語、ポルトガル語(ブラジル)、ロシア語の言語パックは機械支援で翻訳されています。用語が母語の慣習と一致しない場合があり、一部の技術用語(hotkey、toast、frame など)はあえて英語のままにしています。校正に協力してくださるネイティブスピーカーの方は、src/CaptureImage.UI/Resources/Strings/ の .resx ファイルへの Pull Request を歓迎します。</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>ベトナム語、アラビア語、日本語、中国語(簡体)、韓国語、スペイン語、フランス語、ドイツ語、ポルトガル語(ブラジル)、ロシア語の言語パックは機械支援で翻訳されています。用語が母語の慣習と一致しない場合があり、一部の技術用語(hotkey、toast、frame など)はあえて英語のままにしています。校正に協力してくださるネイティブスピーカーの方は、src/CaptureImage.ViewModels/Resources/Strings/ の .resx ファイルへの Pull Request を歓迎します。</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>バージョン</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>参照…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>開いているウィンドウ</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>キャプチャをキャンセルしました。</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>画像をクリップボードにコピーできませんでした。別のアプリが使用中の可能性があります。もう一度お試しください。</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>画像をエンコードできませんでした。</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>ファイルを保存できませんでした。出力フォルダーとディスクの空き容量を確認してください。</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>グラフィックドライバーが応答しなくなりました。しばらくしてからもう一度お試しください。</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage는 코드, 테스트, 문서 작성에 AI 코딩 도우미(Anthropic의 Claude, Claude Code 사용)의 상당한 도움을 받아 개발됩니다. 모든 변경 사항은 릴리스 전에 관리자가 검토하고 테스트합니다.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>AI 보조 개발</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>캡처 지원</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage는 Windows.Graphics.Capture를 통해 대부분의 창 모드 및 테두리 없는 게임을 캡처할 수 있지만, 모든 타이틀에서 작동하지는 않습니다. DRM 보호된 표면, 독점 전체 화면 Direct3D 9 게임, 안티치트 후크가 있는 타이틀은 검은 프레임을 반환하거나 캡처를 거부할 수 있습니다. 레거시 앱에는 GDI PrintWindow 폴백이 시도됩니다. 전체 목록은 docs/legal/DISCLAIMER.md §2를 참조하세요.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage는 Windows.Graphics.Capture를 통해 대부분의 창 모드 및 테두리 없는 게임을 캡처할 수 있지만, 모든 타이틀에서 작동하지는 않습니다. DRM 보호된 표면, 독점 전체 화면 Direct3D 9 게임, 안티치트 후크가 있는 타이틀은 검은 프레임을 반환하거나 캡처를 거부할 수 있습니다. 전체 목록은 docs/legal/DISCLAIMER.md §2를 참조하세요.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>개발자와 연결</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>개발자</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>면책 조항</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>스크린샷 키가 없는 게임을 위한 가벼운 Windows 화면 캡처 도구.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>타사 구성 요소</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>번역</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>베트남어, 아랍어, 일본어, 중국어(간체), 한국어, 스페인어, 프랑스어, 독일어, 브라질 포르투갈어, 러시아어 언어 팩은 기계 보조로 번역되었습니다. 용어가 모국어 관습과 일치하지 않을 수 있으며, 일부 기술 용어(hotkey, toast, frame 등)는 의도적으로 영어로 유지되었습니다. 교정에 도움을 주실 원어민 분들의 src/CaptureImage.UI/Resources/Strings/ .resx 파일에 대한 풀 리퀘스트를 환영합니다.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>베트남어, 아랍어, 일본어, 중국어(간체), 한국어, 스페인어, 프랑스어, 독일어, 브라질 포르투갈어, 러시아어 언어 팩은 기계 보조로 번역되었습니다. 용어가 모국어 관습과 일치하지 않을 수 있으며, 일부 기술 용어(hotkey, toast, frame 등)는 의도적으로 영어로 유지되었습니다. 교정에 도움을 주실 원어민 분들의 src/CaptureImage.ViewModels/Resources/Strings/ .resx 파일에 대한 풀 리퀘스트를 환영합니다.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>버전</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>찾아보기…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>열린 창</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>캡처가 취소되었습니다.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>이미지를 클립보드에 복사할 수 없습니다. 다른 앱이 클립보드를 사용 중일 수 있습니다. 다시 시도하세요.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>이미지를 인코딩할 수 없습니다.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>파일을 저장할 수 없습니다. 출력 폴더와 디스크 여유 공간을 확인하세요.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>그래픽 드라이버가 응답하지 않습니다. 잠시 후 다시 시도하세요.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>O CaptureImage é desenvolvido com ajuda considerável de um assistente de programação com IA (Claude, da Anthropic, via Claude Code) para código, testes e documentação. O mantenedor revisa e testa cada alteração antes do lançamento.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>Desenvolvimento assistido por IA</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Suporte de captura</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>O CaptureImage consegue capturar a maioria dos jogos em janela ou sem borda via Windows.Graphics.Capture, mas nem todos os títulos funcionam. Superfícies protegidas por DRM, jogos Direct3D 9 em tela cheia exclusiva e títulos com hooks anti-cheat podem retornar quadros pretos ou recusar a captura. Um fallback GDI PrintWindow é tentado para apps legados. Veja docs/legal/DISCLAIMER.md §2 para a lista completa.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>O CaptureImage consegue capturar a maioria dos jogos em janela ou sem borda via Windows.Graphics.Capture, mas nem todos os títulos funcionam. Superfícies protegidas por DRM, jogos Direct3D 9 em tela cheia exclusiva e títulos com hooks anti-cheat podem retornar quadros pretos ou recusar a captura. Veja docs/legal/DISCLAIMER.md §2 para a lista completa.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Conecte-se com o desenvolvedor</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Desenvolvedor</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Avisos</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Captura de tela leve para Windows voltada a jogos sem tecla de captura nativa.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Componentes de terceiros</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Traduções</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Os pacotes de idioma vietnamita, árabe, japonês, chinês simplificado, coreano, espanhol, francês, alemão, português (Brasil) e russo são assistidos por máquina. A terminologia pode não corresponder às convenções nativas, e algumas palavras técnicas (hotkey, toast, frame etc.) são mantidas em inglês de propósito. Falantes nativos dispostos a revisar são bem-vindos a abrir pull requests nos arquivos .resx em src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Os pacotes de idioma vietnamita, árabe, japonês, chinês simplificado, coreano, espanhol, francês, alemão, português (Brasil) e russo são assistidos por máquina. A terminologia pode não corresponder às convenções nativas, e algumas palavras técnicas (hotkey, toast, frame etc.) são mantidas em inglês de propósito. Falantes nativos dispostos a revisar são bem-vindos a abrir pull requests nos arquivos .resx em src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Versão</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Procurar…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Janelas abertas</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Captura cancelada.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>Não foi possível copiar a imagem para a área de transferência. Outro aplicativo pode estar usando-a; tente novamente.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>Não foi possível codificar a imagem.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>Não foi possível salvar o arquivo. Verifique a pasta de saída e o espaço livre em disco.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>O driver gráfico parou de responder. Tente novamente em instantes.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage is developed with substantial help from an AI coding assistant (Claude by Anthropic, through Claude Code) for code, tests and documentation. The maintainer reviews and tests every change before release.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>AI-assisted development</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Capture support</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage can capture most windowed and borderless games via Windows.Graphics.Capture, but not every title works. DRM-protected surfaces, exclusive-fullscreen Direct3D 9 games, and titles with anti-cheat hooks may return black frames or refuse capture. A GDI PrintWindow fallback is attempted for legacy apps. See docs/legal/DISCLAIMER.md §2 for the full list.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage can capture most windowed and borderless games via Windows.Graphics.Capture, but not every title works. DRM-protected surfaces, exclusive-fullscreen Direct3D 9 games, and titles with anti-cheat hooks may return black frames or refuse capture. See docs/legal/DISCLAIMER.md §2 for the full list.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Connect with the developer</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Developer</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Disclaimers</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Lightweight Windows screen capture for games without a built-in screenshot key.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Third-party components</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Translations</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>The Vietnamese, Arabic, Japanese, Simplified Chinese, Korean, Spanish, French, German, Brazilian Portuguese, and Russian language packs are machine-assisted. Terminology may not match native conventions, and some technical words (hotkey, toast, frame, etc.) are kept in English on purpose. Native speakers willing to proofread are warmly invited to submit pull requests against the .resx files in src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>The Vietnamese, Arabic, Japanese, Simplified Chinese, Korean, Spanish, French, German, Brazilian Portuguese, and Russian language packs are machine-assisted. Terminology may not match native conventions, and some technical words (hotkey, toast, frame, etc.) are kept in English on purpose. Native speakers willing to proofread are warmly invited to submit pull requests against the .resx files in src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Version</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Browse…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Open windows</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Capture cancelled.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>The image could not be copied to the clipboard. Another app may be using it; try again.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>The image could not be encoded.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>The file could not be saved. Check the output folder and free disk space.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>The graphics driver stopped responding. Try again in a moment.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage разрабатывается при значительной помощи ИИ-ассистента для программирования (Claude от Anthropic через Claude Code) — для кода, тестов и документации. Сопровождающий проверяет и тестирует каждое изменение перед выпуском.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>Разработка с помощью ИИ</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Поддержка захвата</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage может захватывать большинство оконных и безрамочных игр через Windows.Graphics.Capture, но не каждый тайтл. Поверхности с DRM, эксклюзивный полноэкранный Direct3D 9 и игры с анти-чит хуками могут возвращать чёрные кадры или отказывать в захвате. Для устаревших приложений используется резервный механизм GDI PrintWindow. Полный список — docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage может захватывать большинство оконных и безрамочных игр через Windows.Graphics.Capture, но не каждый тайтл. Поверхности с DRM, эксклюзивный полноэкранный Direct3D 9 и игры с анти-чит хуками могут возвращать чёрные кадры или отказывать в захвате. Полный список — docs/legal/DISCLAIMER.md §2.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Связаться с разработчиком</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Разработчик</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Примечания</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Лёгкая утилита захвата экрана Windows для игр без встроенной клавиши скриншота.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Сторонние компоненты</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Переводы</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Языковые пакеты вьетнамский, арабский, японский, упрощённый китайский, корейский, испанский, французский, немецкий, бразильский португальский и русский подготовлены при помощи машинного перевода. Терминология может отличаться от привычной носителям, а некоторые технические слова (hotkey, toast, frame и т.п.) намеренно оставлены на английском. Носители языка, готовые проверить переводы, приглашаются открыть pull request к файлам .resx в src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Языковые пакеты вьетнамский, арабский, японский, упрощённый китайский, корейский, испанский, французский, немецкий, бразильский португальский и русский подготовлены при помощи машинного перевода. Терминология может отличаться от привычной носителям, а некоторые технические слова (hotkey, toast, frame и т.п.) намеренно оставлены на английском. Носители языка, готовые проверить переводы, приглашаются открыть pull request к файлам .resx в src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Версия</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Обзор…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Открытые окна</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Снимок отменён.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>Не удалось скопировать изображение в буфер обмена. Возможно, его использует другое приложение; повторите попытку.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>Не удалось закодировать изображение.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>Не удалось сохранить файл. Проверьте папку вывода и свободное место на диске.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>Графический драйвер перестал отвечать. Повторите попытку чуть позже.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage được phát triển với sự hỗ trợ đáng kể từ trợ lý lập trình AI (Claude của Anthropic, qua Claude Code) cho mã nguồn, kiểm thử và tài liệu. Người duy trì xem xét và kiểm thử mọi thay đổi trước khi phát hành.</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>Phát triển có hỗ trợ AI</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>Khả năng chụp</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage có thể chụp hầu hết game cửa sổ và borderless qua Windows.Graphics.Capture, nhưng không phải game nào cũng hoạt động. Bề mặt có DRM, game Direct3D 9 exclusive-fullscreen, và game có hook anti-cheat có thể trả khung đen hoặc từ chối chụp. Cơ chế dự phòng GDI PrintWindow được thử cho ứng dụng cũ. Xem docs/legal/DISCLAIMER.md §2 để biết danh sách đầy đủ.</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage có thể chụp hầu hết game cửa sổ và borderless qua Windows.Graphics.Capture, nhưng không phải game nào cũng hoạt động. Bề mặt có DRM, game Direct3D 9 exclusive-fullscreen, và game có hook anti-cheat có thể trả khung đen hoặc từ chối chụp. Xem docs/legal/DISCLAIMER.md §2 để biết danh sách đầy đủ.</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>Kết nối với nhà phát triển</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>Nhà phát triển</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>Tuyên bố miễn trừ</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>Công cụ chụp màn hình Windows gọn nhẹ cho các game không có phím chụp có sẵn.</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>Thành phần third-party</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>Bản dịch</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Các gói ngôn ngữ tiếng Việt, tiếng Ả Rập, tiếng Nhật, tiếng Trung giản thể, tiếng Hàn, tiếng Tây Ban Nha, tiếng Pháp, tiếng Đức, tiếng Bồ Đào Nha (Brazil) và tiếng Nga đang dùng bản dịch máy. Thuật ngữ có thể không khớp với quy ước bản ngữ, và một số từ kỹ thuật (hotkey, toast, frame, v.v.) được giữ tiếng Anh có chủ đích. Người bản ngữ sẵn lòng hiệu đính xin gửi pull request vào các tệp .resx trong src/CaptureImage.UI/Resources/Strings/.</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>Các gói ngôn ngữ tiếng Việt, tiếng Ả Rập, tiếng Nhật, tiếng Trung giản thể, tiếng Hàn, tiếng Tây Ban Nha, tiếng Pháp, tiếng Đức, tiếng Bồ Đào Nha (Brazil) và tiếng Nga đang dùng bản dịch máy. Thuật ngữ có thể không khớp với quy ước bản ngữ, và một số từ kỹ thuật (hotkey, toast, frame, v.v.) được giữ tiếng Anh có chủ đích. Người bản ngữ sẵn lòng hiệu đính xin gửi pull request vào các tệp .resx trong src/CaptureImage.ViewModels/Resources/Strings/.</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>Phiên bản</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>Duyệt…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>Các cửa sổ đang mở</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>Đã huỷ chụp.</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>Không thể sao chép ảnh vào bộ nhớ tạm. Có thể một ứng dụng khác đang dùng bộ nhớ tạm; hãy thử lại.</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>Không thể mã hoá hình ảnh.</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>Không thể lưu tệp. Hãy kiểm tra thư mục lưu và dung lượng ổ đĩa còn trống.</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>Driver đồ hoạ ngừng phản hồi. Hãy thử lại sau giây lát.</value></data>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<data name="About_AiNotice" xml:space="preserve"><value>CaptureImage 的代码、测试和文档在开发中大量借助了 AI 编程助手(Anthropic 的 Claude,通过 Claude Code)。每项更改在发布前都由维护者审查和测试。</value></data>
|
||||
<data name="About_AiSection" xml:space="preserve"><value>AI 辅助开发</value></data>
|
||||
<data name="About_CaptureDisclaimer" xml:space="preserve"><value>截图支持</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage 通过 Windows.Graphics.Capture 可截取大多数窗口化和无边框游戏,但并非所有游戏都受支持。受 DRM 保护的画面、独占全屏 Direct3D 9 游戏以及带反作弊钩子的游戏可能会返回黑屏或拒绝截图。对于旧应用会尝试 GDI PrintWindow 回退。完整列表请参阅 docs/legal/DISCLAIMER.md §2。</value></data>
|
||||
<data name="About_CaptureLimitationDisclaimerBody" xml:space="preserve"><value>CaptureImage 通过 Windows.Graphics.Capture 可截取大多数窗口化和无边框游戏,但并非所有游戏都受支持。受 DRM 保护的画面、独占全屏 Direct3D 9 游戏以及带反作弊钩子的游戏可能会返回黑屏或拒绝截图。完整列表请参阅 docs/legal/DISCLAIMER.md §2。</value></data>
|
||||
<data name="About_ContactSection" xml:space="preserve"><value>与开发者联系</value></data>
|
||||
<data name="About_DeveloperLabel" xml:space="preserve"><value>开发者</value></data>
|
||||
<data name="About_DisclaimersSection" xml:space="preserve"><value>免责声明</value></data>
|
||||
@@ -65,7 +65,7 @@
|
||||
<data name="About_Tagline" xml:space="preserve"><value>面向无内置截图键游戏的轻量级 Windows 屏幕截图工具。</value></data>
|
||||
<data name="About_ThirdPartySection" xml:space="preserve"><value>第三方组件</value></data>
|
||||
<data name="About_TranslationDisclaimer" xml:space="preserve"><value>翻译</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>越南语、阿拉伯语、日语、简体中文、韩语、西班牙语、法语、德语、巴西葡萄牙语和俄语语言包采用机器辅助翻译。术语可能与母语习惯不一致,部分技术术语(hotkey、toast、frame 等)有意保留为英文。欢迎母语为相关语言的志愿者校对,可通过对 src/CaptureImage.UI/Resources/Strings/ 下的 .resx 文件提交 Pull Request。</value></data>
|
||||
<data name="About_TranslationDisclaimerBody" xml:space="preserve"><value>越南语、阿拉伯语、日语、简体中文、韩语、西班牙语、法语、德语、巴西葡萄牙语和俄语语言包采用机器辅助翻译。术语可能与母语习惯不一致,部分技术术语(hotkey、toast、frame 等)有意保留为英文。欢迎母语为相关语言的志愿者校对,可通过对 src/CaptureImage.ViewModels/Resources/Strings/ 下的 .resx 文件提交 Pull Request。</value></data>
|
||||
<data name="About_VersionLabel" xml:space="preserve"><value>版本</value></data>
|
||||
|
||||
<data name="Common_Browse" xml:space="preserve"><value>浏览…</value></data>
|
||||
@@ -96,6 +96,7 @@
|
||||
<data name="Dashboard_Windows" xml:space="preserve"><value>已打开的窗口</value></data>
|
||||
|
||||
<data name="Error_Cancelled" xml:space="preserve"><value>已取消截图。</value></data>
|
||||
<data name="Error_ClipboardFailure" xml:space="preserve"><value>无法将图像复制到剪贴板。可能有其他应用正在使用剪贴板,请重试。</value></data>
|
||||
<data name="Error_EncodingFailure" xml:space="preserve"><value>无法编码图像。</value></data>
|
||||
<data name="Error_FileWriteFailure" xml:space="preserve"><value>无法保存文件。请检查输出文件夹和可用磁盘空间。</value></data>
|
||||
<data name="Error_GraphicsDeviceFailure" xml:space="preserve"><value>显卡驱动程序停止响应。请稍后重试。</value></data>
|
||||
|
||||
@@ -221,6 +221,34 @@ public class HdrToneMapperTests
|
||||
above.Should().BeApproximately(below, 1e-5f);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void InfiniteHighlight_BecomesWhite()
|
||||
{
|
||||
var pixel = ToneMapOne(new RgbaPixel(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, 1f), Hdr240);
|
||||
|
||||
pixel.Should().Be(new BgraPixel(255, 255, 255, 255));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void InfiniteChannel_KeepsItsHue()
|
||||
{
|
||||
var pixel = ToneMapOne(new RgbaPixel(float.PositiveInfinity, 0.5f, 0.5f, 1f), Hdr240);
|
||||
|
||||
pixel.R.Should().Be(255);
|
||||
pixel.G.Should().BeLessThan(8, "finite channels are negligible next to an infinite one");
|
||||
pixel.B.Should().BeLessThan(8);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NaNChannel_BecomesZero_AndTheOthersStillRollOff()
|
||||
{
|
||||
var withNaN = ToneMapOne(new RgbaPixel(float.NaN, 0.9f, 0.5f, 1f), HdrInfo.Sdr);
|
||||
|
||||
withNaN.Should().Be(ToneMapOne(new RgbaPixel(0f, 0.9f, 0.5f, 1f), HdrInfo.Sdr));
|
||||
withNaN.R.Should().Be(0);
|
||||
withNaN.G.Should().BeCloseTo(SrgbByte(HdrToneMapper.CompressHighlight(0.9f)), 1, "a highlight next to a NaN is still compressed");
|
||||
}
|
||||
|
||||
private static BgraPixel ToneMapOne(RgbaPixel pixel, HdrInfo? hdr) =>
|
||||
Frames.ReadBgra(HdrToneMapper.ToSdr(Frames.SolidHalf(1, 1, pixel, hdr)), 0, 0);
|
||||
|
||||
|
||||
@@ -774,6 +774,34 @@ public sealed class CaptureCoordinatorCaptureTests : IDisposable
|
||||
_h.Toasts.Received(1).Show(ToastKind.Success, "L:Toast_ClipboardCopied", "Elden Ring", null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ClipboardCopy_ThatFails_IsReportedAsAFailure()
|
||||
{
|
||||
_h.UpdateCapture(c => c with { ClipboardMode = "Copy" });
|
||||
_h.Clipboard.CopyImageAsync(Arg.Any<CapturedFrame>(), Arg.Any<CancellationToken>()).Returns(false);
|
||||
|
||||
var outcome = await Coordinator.CaptureAsync(CaptureMode.Window, Ct);
|
||||
|
||||
outcome.Kind.Should().Be(CaptureOutcomeKind.Failed);
|
||||
outcome.Error.Should().Be(CaptureError.ClipboardFailure);
|
||||
_h.Output.RelativeFiles().Should().BeEmpty();
|
||||
_h.Sound.DidNotReceive().PlayCaptureSound();
|
||||
_h.Toasts.Received(1).Show(ToastKind.Error, "L:Toast_CaptureFailed", "L:Error_ClipboardFailure", null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ClipboardCopyAndSave_ThatFailsToCopy_StillSavesTheFile()
|
||||
{
|
||||
_h.UpdateCapture(c => c with { ClipboardMode = "CopyAndSave" });
|
||||
_h.Clipboard.CopyImageAsync(Arg.Any<CapturedFrame>(), Arg.Any<CancellationToken>()).Returns(false);
|
||||
|
||||
var outcome = await Coordinator.CaptureAsync(CaptureMode.Window, Ct);
|
||||
|
||||
outcome.Kind.Should().Be(CaptureOutcomeKind.Saved);
|
||||
File.Exists(GameFile()).Should().BeTrue();
|
||||
_h.Toasts.Received(1).Show(ToastKind.Success, "L:Toast_CaptureSaved", CoordinatorHarness.GameStem + ".png", null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ClipboardCopyAndSave_DoesBoth()
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<PackageReference Include="AwesomeAssertions" />
|
||||
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -9,6 +9,7 @@ using CaptureImage.Core.Models;
|
||||
using CaptureImage.Infrastructure.Steam;
|
||||
using CaptureImage.Infrastructure.Tests.TestSupport;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Microsoft.Extensions.Time.Testing;
|
||||
using Xunit;
|
||||
|
||||
namespace CaptureImage.Infrastructure.Tests.Steam;
|
||||
@@ -211,6 +212,27 @@ public sealed class SteamLibraryScannerTests : IDisposable
|
||||
scanner.TryGetAppInfo(later).Should().BeNull();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TryGetAppInfo_AfterAFailedScan_RetriesAMinuteLater()
|
||||
{
|
||||
WriteLibraryFolders(_steamRoot);
|
||||
var exe = InstallApp(_steamRoot, Dota);
|
||||
var time = new FakeTimeProvider(DateTimeOffset.UnixEpoch);
|
||||
var failing = true;
|
||||
var scanner = new SteamLibraryScanner(
|
||||
() => failing ? throw new InvalidOperationException("registry hiccup") : _steamRoot,
|
||||
NullLogger<SteamLibraryScanner>.Instance,
|
||||
time);
|
||||
|
||||
scanner.TryGetAppInfo(exe).Should().BeNull("the scan failed");
|
||||
|
||||
failing = false;
|
||||
scanner.TryGetAppInfo(exe).Should().BeNull("a failed scan waits before trying again");
|
||||
|
||||
time.Advance(TimeSpan.FromMinutes(1));
|
||||
scanner.TryGetAppInfo(exe).Should().Be(Dota, "the scan is retried instead of failing every lookup");
|
||||
}
|
||||
|
||||
// ---- Fake Steam installation -------------------------------------------------------
|
||||
|
||||
private SteamLibraryScanner CreateScanner(Func<string?>? steamRoot = null) =>
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
"resolved": "9.6.0",
|
||||
"contentHash": "8kdtgI+tZIgP46ncnk650/dU4JSrn+n2Dkic8FvjIFn72P6Nv1Afyr5F8F3PsokHg1GBSBVo1/Z+eZOrU5esSA=="
|
||||
},
|
||||
"Microsoft.Extensions.TimeProvider.Testing": {
|
||||
"type": "Direct",
|
||||
"requested": "[10.11.0, )",
|
||||
"resolved": "10.11.0",
|
||||
"contentHash": "DTivKZ2Du0dJideTTa6vPj/eXKNRu+RxtjBX7NOOUXHBtHx1ehbE+lM+j3/5M3wU6BqzcZqEEyR4+FnPKs2rTA=="
|
||||
},
|
||||
"Microsoft.Testing.Extensions.CodeCoverage": {
|
||||
"type": "Direct",
|
||||
"requested": "[18.12.0, )",
|
||||
@@ -226,7 +232,7 @@
|
||||
"captureimage.infrastructure": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "[10.0.13, )",
|
||||
"Serilog": "[4.4.0, )",
|
||||
"SkiaSharp": "[4.153.1, )",
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
"captureimage.viewmodels": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"CaptureImage.Core": "[1.5.1, )",
|
||||
"CaptureImage.Core": "[2.0.1, )",
|
||||
"CommunityToolkit.Mvvm": "[8.4.2, )",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "[10.0.13, )",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "[10.0.13, )"
|
||||
|
||||