mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 15:58:07 +02:00
13 lines
918 B
Plaintext
13 lines
918 B
Plaintext
{
|
|
"scanline" : {
|
|
"Category" : "General",
|
|
"Keywords" : [
|
|
"pf24bit",
|
|
"ScanLine",
|
|
"Images",
|
|
"Delphi"
|
|
],
|
|
"Description" : " This example demonstrates how to\n - create an image with an internal format similar to Delphi's pf24bit\n - convert it to current format and create a TBitmap from it\n - use an approach similar to Delphi's TBitmap.ScanLine.\n \n Delphi's TBitmap implementation only supports windows formats. For example the TBitmap.ScanLine function gives a direct pointer to the memory. This is not possible under all widget sets. And even those who supports it, uses different formats than windows. So Delphi code using TBitmap.ScanLine has to be changed anyway. How much depends on how much speed is needed.\n \n If the goal is to quickly port some Delphi code using TBitmap.Scanline, then the this code gives some hints how to achieve it.\n"
|
|
}
|
|
}
|