| synopsis || arguments || prev || next |

jp2_resolution::get_aspect_ratio

Java: Jp2_resolution::Get_aspect_ratio

float get_aspect_ratio( bool for_display=true)

Java: float Get_aspect_ratio( boolean for_display)

[Declared in "../apps/compressed_io/jp2.h"]

Go to class description.


Synopsis

Always returns a positive aspect ratio representing the vertical grid spacing divided by the horizontal grid spacing on the code-stream's high resolution canvas. If for_display is false, the capture aspect ratio is returned instead of the display aspect ratio, although these should be identical in any reasonable use of the relevant JP2 boxes.


Arguments

for_display [bool]


| top || synopsis || arguments || prev || next |