How do I reduce the resolution of PDF images?

Q:

referring to jbig2test example that comes with version 3.6 I'd like to
know if it is possible to enable the jbig2 compression and reduce the
resolution in one step setting the appropriate eoncder_hints:

                        _JBIG2_hint = Obj.CreateArray();

_JBIG2_hint.PushBack(Obj.CreateName("JBIG2"));

_JBIG2_hint.PushBack(Obj.CreateName("Lossy"));
                        _JBIG2_hint.PushBack(Obj.CreateName("DPI"));
                        _JBIG2_hint.PushBack(Obj.CreateName("300"));

Anyhow I'd like to know, if it is possible to reduce the resolution.
-------
A:

There is no option to resample and recompress the image in a single
step. Still using PDFNet you can implement this functionality using
the following steps:

extract the image data, resample the image, and then embed it using
new compression method (and optionally replace the old image).

You can find more information on this topic if you search PDFNet
Knowledge Base using the following keywords:

"How to replace raster images"
"Resample"
"PDF optimization"
etc