Exporting Images as PNG

I have this chart composed of GUI plus toggle buttons. On clicking CANDLES toggle button the Candle Chart appears. Below in the screenshot of this image.

While trying to 1. Edit -> Image -> Export to file
I get a blank chart without candlesticks.

Short answer: Turn on your candle plot as default show and toggle as other action(hide). It should most likely work.

Why? many times, we see including for the reason of status("actionExAAParameters") that the AFL "has" to be executed to complete an action.
So, when you do Export Image, think of it as your default afl as being executed inside another container instead of thinking it as print screen or screenshot.
GUI controls for example will not be present.

See if you get an idea similar to this interaction:
Copy image to clipboard versus actual graphics - AFL Programming - AmiBroker Community Forum

There are topics in the forum of using 3rd party methods of achieving screenshots as well that you can find useful.

And as always, finer details of the answer are reserved for Tomasz and I can get things wrong.

also see
OLE Window.ExportImage within Amibroker ( Have read the warning label ) - AFL Programming - AmiBroker Community Forum

Possible to export analysis output as an image file? - AmiBroker - AmiBroker Community Forum

@PASH

Post THE CODE. No guessing games. As Linus Torvalds says “talk is cheap. send the code”
Please follow this advice: How to ask a good question

BTW: @nsm51 - GUI controls is completely separate unrelated matter, they don’t appear on export because GUI controls are SEPARATE windows, not part of the chart. They are overlaid optically on the chart but they are not part of chart imagery. But again it is completely unrelated issue.

1 Like

yes, regarding gui controls, that's what I "noted" incase OP also asked about that.

Thanks. Actually thru screenshot I am not getting a good resolution. I tried Edit - Image - Copy as Bitmap and then pasted in Photoshop and exported as PNG. That gives me a perfect resolution even after zooming 200%. Only thing the GUI toggle button disappears.

The Print Adobe also gives some weird output. And its impossible to ask Thomas anything here.

You either respect forum rules, or you don’t use the forum. Forum rules and guidelines are here so people don’t waste time on guessing games.

I am not your slave too. It is you who are asking for help not the other way round. If you want help it helps to be polite. When somebody tells you to send the code you have two options: follow advice or help yourself.

I spent 30 years explaining users simple things, and I don’t have another 30 years to explain basics over and over again such as why code speeds up solving user problems. If you don’t understand and don’t respect my time, please help yourself. Your questions were already asked dozens of times and answered dozens of times.
You should just search the forum instead of attacking somebody who helps people for 30 years. I have better things to do than listening to people who show absolutely no respect to hard working people.

Next time you want to ask somebody for help, Please follow this advice: How to ask a good question

And the search that you should be doing is here, click the link:

https://forum.amibroker.com/search?q=GUI%20controls%20save%20as%20image