1

Topic: How to add a jpg image to the log?

I see that LogBitmap expect a TBitmap.
How can I add a jpg image to the log, which the viewer will display?
A TBitmap is just too big to add when it is a screenshot of a 1920x1080 screen.

2

Re: How to add a jpg image to the log?

Hello!

You can just use LogJpeg for this. This functions expects a TJpegImage object and displays it in the same viewer as the bitmap function. There are also LogJpegFile and LogJpegStream functions for logging jpeg files or streams, respectively.

Regards,
Tobias

3

Re: How to add a jpg image to the log?

tgurock wrote:

Hello!

You can just use LogJpeg for this. This functions expects a TJpegImage object and displays it in the same viewer as the bitmap function. There are also LogJpegFile and LogJpegStream functions for logging jpeg files or streams, respectively.

Regards,
Tobias

I must have been blind, did not see the functions hmm
Sorry to waste your time with that smile

4

Re: How to add a jpg image to the log?

Don't worry, I'm happy to help. Have a nice weekend! :-)

Regards,
Tobias