Declaration
property J2000_Reduce: integer;
Description
Specifies the amount to reduce image size when loading (in order to load faster).
Maximum value depends on the encoded image. Generally, it will be less than 6.
-1 = Auto-Calculate: Reduce to approximately
LoadToWidth and
LoadToHeight
0 = no reduction
1 = reduce to 1/2 (2^1)
2 = reduce to 1/4 (2^2)
3 = reduce to 1/8 (2^3)
4 = reduce to 1/16 (2^4)
etc...
Default: 0
// Load a JPEG2000 image reduced to 1/8 (ie 640x480 -> 80x60)
ImageEnView1.IO.Params.J2000_Reduce := 3;
ImageEnView1.LoadFromFile('image.jp2');
// Load a JPEG2000 image as fast as possible, ensuring width is >= 150 and height >= 100 (while maintaining the aspect ratio)
ImageEnView1.IO.Params.LoadToWidth := 150;
ImageEnView1.IO.Params.LoadToHeight := 100;
ImageEnView1.IO.Params.J2000_Reduce := -1; // auto-calc
ImageEnView1.LoadFromFile('image.jp2');