| Transformando ícone (*.ico) em bitmap (*.bmp) |
|
|
|
| Dicas - Imagens | ||
|
VAR Pic : TPicture; TI : TIcon; BEGIN TI := TIcon.Create; TI.Handle := ExtractIcon(HInstance, FileNameBuf, 0); Pic := TPicture.Create; Pic.Icon := TI; Image1.Picture := Pic; {TImage} BitBtn1.Glyph := TBitmap.Create; WITH BitBtn1.Glyph DO BEGIN width := TI.Width; Height := TI.Height; Canvas.Draw(0, 0, Pic.Icon); END; END;
|
||



