ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  get size of imported jpg
Posted by andrzej jasionowski on Oct-01-2014 16:07
Hi,

Is it at all possible to find the pixel size of imported pictures?
I wish to import a jpg and then plot lines on top of it but relative to its position and size.
How can i achieve this?

Thanks a lot!

Best regards
Andrzej

  Re: get size of imported jpg
Posted by Peter Kwan on Oct-02-2014 00:18
Hi andrzej,

One method is (in Java/C#):

DrawArea d = new DrawArea();
d.load("/path/to/myimage.jpg");
int width = d.getWidth();
int height = d.getHeight();

Hope this can help.

Regards
Peter Kwan