Forum > Graphics

Grow your own Fractal Tree on a TImage (and also TPaintbox)


Made some zoom-able Fractal trees on a TImage and and TPaintbox.

One tiny question ...

How to make the size of the TImage exceed the size of the form at runtime, while still making it zoom-able?
(in other words change the size of the TImage at runtime)

I am unsure about your question but my adivse would be:
Do not use TPaintBox or TImage to draw something at all.
Create a TBitmap or BGRA or Bitmap32 etc...
Whenever its needed, assign the "Bitmap" to an TImage.
The Bitmap can have any size while the TImage, as usual for an visual component, have its limits.

I hope I've answered your question?!

KodeZwerg, Josh created an image that was quite big to show extra detail for the Rose Curve (at,65101.15.html) but I was unsure how he did it.

The question basically is how make a high recursion level fractal using a large canvas size to show extra detail.
That's what I wanted to know how to do.

I have been progressing from a TPaintbox to a TImage (and then to BGRAbmp and  Bitmap32 once I get the hang of it). Now getting the hang of using TPaintbox and TImage.

I am currently working on making a PentaFlake converted from JavaScript. Started but got a bit to go. The basic picture is there, but need to add extra features.


[0] Message Index

Go to full version