The The Viewing and Annotations sample is an image viewer that demonstrates the following image manipulations: altering the viewable size, changing the orientation, changing the size and resolution, making corrections, and flipping through pages of a multi-page file.

This sample also demonstrates several annotation methods, such as adding edits, bitmaps, lines, sticky notes, and more through a variety of methods. These annotations can be in both text and graphic format.

For information about the methods used in The Viewing and Annotations Sample, please see the RasterMaster Java API documentation.

The methods used in the sample include:

  • IMG_decompress_bitmap(String, int)
  • IMG_deskew_bitmap(int)
  • IMG_despeckle_bitmap(int)
  • IMG_display_bitmap(java.awt.Graphics, int, int, int, int)
  • IMG_display_bitmap_aspect(java.awt.Graphics,java.awt.Container, int, int, int, int, int)
  • IMG_erase_rect(int,int,int,int,int,int,int)
  • IMG_flip_bitmapx(void)
  • IMG_flip_bitmapy(void)
  • IMG_get_deskew_angle(int[], int, int)
  • IMG_invert_bitmap(void)
  • IMG_merge_block(Snow.Snowbnd, int, int, int)
  • IMG_print_applet_pages(java.awt.Container,int)
  • IMG_resize_bitmap(int, int)
  • IMG_rotate_bitmap(int)
  • IMG_save_bitmap(String, int)
  • IMG_scroll_bitmap(java.awt.Container, java.awt.Event)
  • IMG_window_level(int, int, int)
  • SANN_read_ann(DataInputStream, int)
  • SANN_set_croprect(int, int, int, int)
  • SANN_display_annotations(java.awt.Graphics,java.awt.Container,int, int,int,int)
  • GetClientRect(java.awt.Container, Snow.SANN_RECT)
  • SANN_highlight_object(java.awt.Container, Snow.SANN_RECT, int)
  • ui_delete(java.awt.Container)
  • ui_startmove(java.awt.Container)
  • ui_startresize(java.awt.Container)
  • ui_wm_lbuttondown(java.awt.Container, int, int, byte[])
  • ui_wm_mousemove(java.awt.Container, int, int, byte)
  • ui_wm_lbuttonup(java.awt.Container, int, int, byte[])
  • SANN_write_ann(byte[], int, byte[])
  • SANN_activate_all_objects(void)
  • SANN_deactivate_all_objects(void)
  • SnowAnn Sann = new SnowAnn(int, int);
  • Snowbnd()