ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Raster image resolution

3 REPLIES 3
Reply
Message 1 of 4
SCTINFORMATICA
314 Views, 3 Replies

Raster image resolution

I need to read the resolution in X and Y of an AcDbRasterImage inserted into a drawing using ObjectARX

I've tryed AcDbRasterImage and AcDbRasterImageDef but I can't find out the information I need.

 

Can anyone help?

 

Thanks

Bianchi Flavio

SCT Informatica
3 REPLIES 3
Message 2 of 4
maisoui
in reply to: SCTINFORMATICA

Hi,

 

You want size in pixels? From documentation:

AcDbRasterImage::imageSize

Returns the raw image size in pixels. (The image size is also available directly from the AcDbRasterImageDef object.)

 

Does it help you?

--
Jonathan
Message 3 of 4
SCTINFORMATICA
in reply to: maisoui

Thanks Jonathan,

  I've seen the imagesize function but I need to extract the DPI of the image.

Imagesize reports that the image is xxx pixels high and yyy pixels width but I need to know

how many DPI this pixels are.

 

Thanks

Flavio

SCT Informatica
Message 4 of 4

Have you looked at the AcDbRasterImage class in the ObjectARX reference? I see AcDbRasterImage::imageWidth() and AcDbRasterImage::imageHeight(), which appear to be what you're looking for.

--
Owen Wengerd
ManuSoft

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost