cpdf-source/javasplits/c14.tex

29 lines
1.2 KiB
TeX
Raw Normal View History

2022-04-04 17:06:06 +02:00
/* CHAPTER 13. Images. */
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
/** Gets image data, including resolution at all points of use. Call
{@link #startGetImageResolution(pdf, double) startGetImageResolution(pdf,
min_required_resolution)} to begin the process of obtaining data on all
image uses below <code>min_required_resolution</code>, returning the total
number. So, to return all image uses, specify a very high
<code>min_required_resolution</code>. Then, call the other functions giving
a serial number <code>0...n - 1</code>, to retrieve the data. Finally, call
{@link #endGetImageResolution() endGetImageResolution} to clean up. */
public native int startGetImageResolution(Pdf pdf, double res)
throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native int getImageResolutionPageNumber(int serial)
throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native String getImageResolutionImageName(int serial)
throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native int getImageResolutionXPixels(int serial) throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native int getImageResolutionYPixels(int serial) throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native double getImageResolutionXRes(int serial) throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native double getImageResolutionYRes(int serial) throws CpdfError;
2022-04-03 16:48:26 +02:00
2022-04-04 17:06:06 +02:00
public native void endGetImageResolution() throws CpdfError;