Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-07

FPReadIcon?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

Hello,

How to load an ICON using FCL-Image? Something like:

program project1;
{$mode objfpc}{$H+}
uses
  FPimage, FPRead???;
var
  r: TFPReader???;
  i: TFPMemoryImage;
begin
  r := TFPReader???.Create;
  i := TFPMemoryImage.Create(16, 16);
  try
    i.LoadFromFile('lazarus16x16.ico', r);
  finally
    r.Free;
    i.Free;
  end;
end.

Thank you!

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

silvioprog
to Michael Van Canneyt

2013/7/14 Michael Van Canneyt

Show quoted text 10 lines
On Sat, 13 Jul 2013, silvioprog wrote: > Hello, > > How to load an ICON using FCL-Image? Something like: > There is currently no .ico reader. Michael.

Hm... does anyone have plans to implement it?

I saw the icon implementation on Graphics unit, seems possible to create a reader from this implementation.

Silvio Clécio My public projects - github.com/silvioprog

Reply by email

Michael Van Canneyt
to silvioprog
silvioprog wrote 15 lines
2013/7/14 Michael Van Canneyt On Sat, 13 Jul 2013, silvioprog wrote: Hello, How to load an ICON using FCL-Image? Something like: There is currently no .ico reader. Michael. Hm... does anyone have plans to implement it? I saw the icon implementation on Graphics unit, seems possible to create a reader from this implementation.

I would welcome the contribution.

Michael.

Reply by email