In Libdelphi.pas,
Now It works fine :)
Also changes in Imaginglibtiffdelphi.pas,
Code Select
procedure memset(a: Pointer; b: Integer; c: PtrUInt); cdecl;
begin
system.FillChar(a^,c,b); // swap "b" and "c"
end;
Now It works fine :)
Also changes in Imaginglibtiffdelphi.pas,
Code Select
TiffResult := TIFFReadRGBAImageOriented(Tiff, Images[Idx].Width, Images[Idx].Height,
Images[Idx].Bits, Orientation, 0);
if TiffResult = 0 then
RaiseImaging(LastError, []);
// swap Red and Blue, if YCbCr.
if Photometric=PHOTOMETRIC_YCBCR then
SwapChannels(Images[Idx],ChannelRed,ChannelBlue);