I have been at it for a week now, and I give up. How do you extract PNG images embedded in a TStyleBook
?
I tried this genuine solution, but am getting a strange result. The bitmap shown in my form at design and runtime is that of a TAniIndicator
:
When I open MultiResBitmap
editor of my TImage
I see two scaled versions of the same image.
I used this code to save bitmaps:
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
begin
for i := 0 to Image1.MultiResBitmap.Count - 1 do
Image1.MultiResBitmap.Items[i].Bitmap.SaveToFile(IntToStr(i) + '.png');
end;
And I got two scaled images of this:
So, what happened? How come the image shows one thing and saves another? And how can I save all the images so that I can edit them? And more importantly, after editing, how can I put them back into my TStyleBook
?