Ignore:
Timestamp:
Dec 22, 2016, 8:49:19 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Updated BGRABitmap package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/bgrabitmap/bgrapaintnet.pas

    r472 r494  
    8080implementation
    8181
    82 uses zstream, Math, graphtype, Graphics, lazutf8classes, FileUtil;
     82uses zstream, Math, BGRAUTF8;
    8383
    8484{$hints off}
     
    285285  Stream.Position:= Stream.Position + XmlHeaderSize;
    286286     {$hints off}
    287   stream.Read(CompressionFormat, sizeof(CompressionFormat));
     287  stream.ReadBuffer(CompressionFormat, sizeof(CompressionFormat));
    288288     {$hints on}
    289289  CompressionFormat := LEToN(CompressionFormat);
     
    327327    begin
    328328        {$hints off}
    329       LayerData[i].Read(b, 1);
     329      LayerData[i].ReadBuffer(b, 1);
    330330        {$hints on}
    331331      Result += IntToHex(b, 2) + ' ';
     
    418418    layerData[layer].Position := 0;
    419419    layerData[layer].Read(Result.Data^, LayerData[layer].Size);
     420    if TBGRAPixel_RGBAOrder then result.SwapRedBlue;
    420421    Result.InvalidateBitmap;
    421422
     
    476477begin
    477478  {$hints off}
    478   src.Read(CompressionFlag, 1);
     479  src.ReadBuffer(CompressionFlag, 1);
    479480  {$hints on}
    480481  if CompressionFlag = 1 then
Note: See TracChangeset for help on using the changeset viewer.