| 1 | # Test TCastleImage.Draw3x3 |
| 2 | |
| 3 | Test `TCastleImage.Draw3x3` method, to draw one image on another using 9-slices |
| 4 | algorithm. |
| 5 | |
| 6 | Note that you should prefer to use TDrawableImage.Draw3x3 in most games |
| 7 | (it's done on GPU and is much faster), see e.g. draw_images_on_gpu.lpr |
| 8 | for an example how to draw on TDrawableImage. |
| 9 | |
| 10 | Using [Castle Game Engine](https://castle-engine.io/). |
| 11 | |
| 12 | ## Building |
| 13 | |
| 14 | Compile by: |
| 15 | |
| 16 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 17 | |
| 18 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 19 | |
| 20 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `x3d_call_pascal_code_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |