Storing bitmap inside code without component. lazarus / 39-Graphics ---------------------------------------------------------------------- toplek · 2017-02-11 09:20 Hi, is it possible to store bitmap inside code in declaration part, something like below: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i const  Picture: TBitMap = {    36030000424D3603000000000000360000002800000010000000100000000100    18000000000000030000C40E0000C40E00000000000000000000FFFFFFFF0000    FF0000FF0000FF0000FF0000FFFFFFFFFFFFFFFFFFFFFFFFFF0000FF0000FF00    00FF0000FF0000FFFFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FFFFFFFF    00FF0000FF0000FFFFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FFFFFFFF    FFFFFFFFFFFFFFFFFF0000FF0000FF0000FF0000FF0000FFFFFF  } br Piotr Polok ---------------------------------------------------------------------- Handoko · 2017-02-11 09:59 I think it will better to use resource file. Read more: http://wiki.freepascal.org/Lazarus_Resources ---------------------------------------------------------------------- Thaddy · 2017-02-11 10:03 Yes, a resource file is easier. There is the data2inc utility to create an include file from e.g. a bitmap, though, that can be included in your code. ---------------------------------------------------------------------- Roland57 · 2017-02-11 12:29 Hello! You could also use data2pas. ---------------------------------------------------------------------- toplek · 2017-02-13 21:29 Hi, thank you for the advice, both solution are interesting, It's look like data2pas will fit my needs. br Piotr Polok