Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Problem changing dpi for a jpeg file

maglin

New member
Hi!


Has anybody succeded in changing the resolution of a jpeg file in Pro/E Wildfire 2.0 using J-Link? I tried the following:


RasterImageExportInstructions instructions =
pfcWindow.JPEGImageExportInstructions_Create( 2 * window.GetWidth(), 2 * window.GetHeight() );
instructions.SetDotsPerInch(com.ptc.pfc.pfcWindow.DotsPerInc h.RASTERDPI_400);
window.ExportRasterImage( configuration_partnumber + ".jpg", instructions );


This always produces a 100 dpi file for me. (I tried changing the default in config.pro, this didn't work either.


Cheers, Magnus L.
 
Hi,



i use nearly the same ExportInstructions like u and it have 400dpi. I
also use factor 6 for Window- width and height... it looks better the
factor 2
smiley2.gif
.

Code:
RasterImageExportInstructions instructions =
pfcWindow.JPEGImageExportInstructions_Create( 6 * window.GetWidth(), 6
* window.GetHeight() );

I dont know why u get a 100dpi image - sorry.



Bye
 

Sponsor

Back
Top