Hello guys,
are there any possiblities in WinCC OA, to get the resolution of an image? In particular JPGs and PNGs
kr
Michel
image resolution
Search
Re: image resolution
With resolution you mean the size (width x height) ?
If so, you can see this information in the preview tooltip when the image is hovered in the project tree in gedi.
If you mean from within CTRL, no, there's currently no function for that.
What's your usecase ?
If so, you can see this information in the preview tooltip when the image is hovered in the project tree in gedi.
If you mean from within CTRL, no, there's currently no function for that.
What's your usecase ?
Re: image resolution
Exactly, I mean the size. I would like to resize a panel and a rectangle to fit the size of the picture
Re: image resolution
Or is there a dll or something like that?
Re: image resolution
Do you know how to write and compile a Ctrl Extension ?
If so, download Qt4 opensource for your platform and use the QImage class, e.g.
QImage image(fileName);
image.width() and image.height() gives you the result.
If so, download Qt4 opensource for your platform and use the QImage class, e.g.
QImage image(fileName);
image.width() and image.height() gives you the result.
Re: image resolution
Another idea: use ImageMagick's tool "identify" and call it via system() and parse the resulting output.
See http://www.imagemagick.org/script/identify.php
See http://www.imagemagick.org/script/identify.php