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

Legend:

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

    r472 r494  
    8484implementation
    8585
    86 uses Graphics, XMLRead, XMLWrite, FPReadPNG, dialogs, BGRABitmapTypes, zstream, lazutf8classes,
     86uses XMLRead, XMLWrite, FPReadPNG, BGRABitmapTypes, zstream, BGRAUTF8,
    8787  UnzipperExt;
    8888
     
    132132
    133133function TFPReaderOpenRaster.InternalCheck(Stream: TStream): boolean;
    134 var {%h-}magic: packed array[0..3] of byte;
     134var magic: packed array[0..3] of byte;
    135135  OldPos,BytesRead: Int64;
    136136  doc : TBGRAOpenRasterDocument;
     
    139139  if Stream=nil then exit;
    140140  oldPos := stream.Position;
    141   BytesRead := Stream.Read({%h-}magic,sizeof(magic));
     141  {$PUSH}{$HINTS OFF}
     142  BytesRead := Stream.Read(magic,sizeof(magic));
     143  {$POP}
    142144  stream.Position:= OldPos;
    143145  if BytesRead<>sizeof(magic) then exit;
     
    303305              BlendOperation[idx] := boOverlay else
    304306            if opstr = 'svg:soft-light' then
    305               BlendOperation[idx] := boSoftLight else
     307              BlendOperation[idx] := boSvgSoftLight else
    306308            if opstr = 'svg:hard-light' then
    307309              BlendOperation[idx] := boHardLight else
     
    320322            if opstr = 'krita:divide' then
    321323              BlendOperation[idx] := boDivide else
     324            if opstr = 'bgra:soft-light' then
     325              BlendOperation[idx] := boSoftLight else
    322326            if opstr = 'bgra:nice-glow' then
    323327              BlendOperation[idx] := boNiceGlow else
     
    331335              BlendOperation[idx] := boXor else
    332336            begin
    333               messagedlg('Unknown blend operation : ' + attr.NodeValue,mtInformation,[mbOk],0);
     337              //messagedlg('Unknown blend operation : ' + attr.NodeValue,mtInformation,[mbOk],0);
     338              BlendOperation[idx] := boTransparent;
    334339            end;
    335340          end;
     
    408413        boMultiply: strval := 'svg:multiply';
    409414        boOverlay, boDarkOverlay: strval := 'svg:overlay';
    410         boSoftLight: strval := 'svg:soft-light';
     415        boSoftLight: strval := 'bgra:soft-light';
    411416        boHardLight: strval := 'svg:hard-light';
    412417        boDifference,boLinearDifference: strval := 'svg:difference';
     
    420425        boLinearNegation,boNegation: strval := 'bgra:negation';
    421426        boXor: strval := 'bgra:xor';
     427        boSvgSoftLight: strval := 'svg:soft-light';
    422428        else strval := 'svg:src-over';
    423429      end;
Note: See TracChangeset for help on using the changeset viewer.