Hi All.
I have been playing around with a LSystem Fractal Image program and wondered if anyone could possibly help in explaining how to add an AutoSize Image Canvas Size to Fit Image feature.
When I change the recursion level of a given fractal it's rendered image gets bigger and is not shown completely on the Timage. Is there a way of setting the image size automatically by pre-calculating the range of X and Y pixel values?
Attached is a screenshot.
After compiling, click Pentaplexity in the listbox to render it. then change iterations to 5 in the memo and click Draw.
When iterations = 4 is changed to iterations = 5 the picture becomes too big for the image control
Thanx in advance.
I thought of using a BgraBmp image with a viewport to scroll, but not sure really how to do it?