Changeset 494 for GraphicTest/Packages/bgrabitmap/bgraopenraster.pas
- Timestamp:
- Dec 22, 2016, 8:49:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgraopenraster.pas
r472 r494 84 84 implementation 85 85 86 uses Graphics, XMLRead, XMLWrite, FPReadPNG, dialogs, BGRABitmapTypes, zstream, lazutf8classes,86 uses XMLRead, XMLWrite, FPReadPNG, BGRABitmapTypes, zstream, BGRAUTF8, 87 87 UnzipperExt; 88 88 … … 132 132 133 133 function TFPReaderOpenRaster.InternalCheck(Stream: TStream): boolean; 134 var {%h-}magic: packed array[0..3] of byte;134 var magic: packed array[0..3] of byte; 135 135 OldPos,BytesRead: Int64; 136 136 doc : TBGRAOpenRasterDocument; … … 139 139 if Stream=nil then exit; 140 140 oldPos := stream.Position; 141 BytesRead := Stream.Read({%h-}magic,sizeof(magic)); 141 {$PUSH}{$HINTS OFF} 142 BytesRead := Stream.Read(magic,sizeof(magic)); 143 {$POP} 142 144 stream.Position:= OldPos; 143 145 if BytesRead<>sizeof(magic) then exit; … … 303 305 BlendOperation[idx] := boOverlay else 304 306 if opstr = 'svg:soft-light' then 305 BlendOperation[idx] := boS oftLight else307 BlendOperation[idx] := boSvgSoftLight else 306 308 if opstr = 'svg:hard-light' then 307 309 BlendOperation[idx] := boHardLight else … … 320 322 if opstr = 'krita:divide' then 321 323 BlendOperation[idx] := boDivide else 324 if opstr = 'bgra:soft-light' then 325 BlendOperation[idx] := boSoftLight else 322 326 if opstr = 'bgra:nice-glow' then 323 327 BlendOperation[idx] := boNiceGlow else … … 331 335 BlendOperation[idx] := boXor else 332 336 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; 334 339 end; 335 340 end; … … 408 413 boMultiply: strval := 'svg:multiply'; 409 414 boOverlay, boDarkOverlay: strval := 'svg:overlay'; 410 boSoftLight: strval := ' svg:soft-light';415 boSoftLight: strval := 'bgra:soft-light'; 411 416 boHardLight: strval := 'svg:hard-light'; 412 417 boDifference,boLinearDifference: strval := 'svg:difference'; … … 420 425 boLinearNegation,boNegation: strval := 'bgra:negation'; 421 426 boXor: strval := 'bgra:xor'; 427 boSvgSoftLight: strval := 'svg:soft-light'; 422 428 else strval := 'svg:src-over'; 423 429 end;
Note:
See TracChangeset
for help on using the changeset viewer.