RetroNick2020 / TQoiImage

Delphi TGraphic support for QOI images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TQoiImage

Delphi TGraphic support for QOI images.

See https://github.com/phoboslab/qoi

Example:


uses Vcl.Imaging.QOI;
...
var
  qoi: TQoiImage;
begin
  qoi := TQoiImage.Create;
  try
    qoi.LoadFromFile('..\..\dice.qoi');
    //copy (draw) the qoi image onto a TImage component
    Image1.Canvas.Draw(0,0, qoi);
    qoi.SaveToFile('..\..\dice2.bmp');
  finally
    qoi.Free;
  end;

  qoi := TQoiImage.Create;
  try
    qoi.LoadFromFile('..\..\dice2.bmp');
    qoi.SaveToFile('..\..\dice2.qoi');
  finally
    qoi.Free;
  end;

About

Delphi TGraphic support for QOI images

License:MIT License


Languages

Language:Pascal 100.0%