Skip to content

Commit 58cd76d

Browse files
committed
docs(branding): warn about BRCC32 24-bit-only requirement in regen-snippet
1 parent 559ee45 commit 58cd76d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

branding/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ Schreibe folgendes in eine `_regen.ps1` neben den Assets, run, wieder loeschen:
4242
```powershell
4343
Add-Type -AssemblyName System.Drawing
4444
$png = [System.Drawing.Image]::FromFile("$PSScriptRoot\sca.png")
45-
# 24x24 BMP fuer IDE-Plugin
46-
$b = New-Object System.Drawing.Bitmap 24, 24
45+
# 24x24 BMP fuer IDE-Plugin. WICHTIG: Format24bppRgb (nicht Default 32bppArgb)
46+
# - BRCC32 stammt aus der 16-bit-Era und lehnt 32-bit-DIB mit
47+
# 'Invalid bitmap format' ab. Kein Alpha-Channel -> weisser Hintergrund.
48+
$fmt = [System.Drawing.Imaging.PixelFormat]::Format24bppRgb
49+
$b = New-Object System.Drawing.Bitmap 24, 24, $fmt
4750
$g = [System.Drawing.Graphics]::FromImage($b)
4851
$g.InterpolationMode = 'HighQualityBicubic'
52+
$g.Clear([System.Drawing.Color]::White)
4953
$g.DrawImage($png, 0, 0, 24, 24)
5054
$b.Save("$PSScriptRoot\sca_24.bmp", [System.Drawing.Imaging.ImageFormat]::Bmp)
5155
$g.Dispose(); $b.Dispose()

0 commit comments

Comments
 (0)