⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme uv pngfix.txt

📁 支持版本:Delphi 5-2009, C++Builder 5-2009 ATViewer特性: Text, Binary, Hex, Unicode:所有文件
💻 TXT
字号:
How to fix AV in PngImage (1.564) with 32bpp .png images
(when fit is off):

procedure TPngObject.DrawPartialTrans(DC: HDC; Rect: TRect); 
... 
        {Process all the pixels in this line} 
        FOR i := 0 TO W - 1 DO 
        begin 
          if Stretch then i2 := trunc(i / FactorX) else i2 := i; 
          {Optmize when we don_t have transparency} 
          if (AlphaSource[i2] <> 0) then 
            if (AlphaSource[i2] = 255) then 
//              ImageData[i] := pRGBQuad(@ImageSource[i2 * 3])^ // remove
              CopyMemory(@ImageData[i], @ImageSource[i2 * 3], 3) // add

Thanx Dec

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -