An Image View is displayed when an item on the Project Explorer is selected by mouse a single click on branch items or double click on sub item.
The Image Viewer in combination with the Project Explorer allows users to view a large variety of image formats. Ref Adding Addition Image Formats on what formats are supported.
Note: In some cases viewing an image may take some time to display if the CPU is used to decompress a large compressed image item.
- To display an original image view, single mouse click on the item on the Project Explorer.
- To display a destination item image view double click mouse on the Item on the Project Explorer.
Image View of Ruby.bmp
To view a processed image (Project Explorer destination item with a green circle), double click on it (Ruby_bmp_1 in this example) and you will see another Image View tab window appear displaying the processed image.
BC7 Compressed Image View of Ruby_bmp1.dds file
Users can capture viewed images to file using context menu “Save View as” or keyboard keys Ctrl C (displayed image), Alt C (original source image) to save to Windows Clipboard.
Image view context menu (enabled by right mouse button click)
Cursor positions in block increments is also displayed, users can now save any block to file using “Save Source Block … as” where … is the current cursor location translated to a block position.
Image view status bar showing cursors block position
This feature is useful in capturing the source texture blocks that was used for generating compressed blocks that exhibit decompressed image artifacts or poor quality. Depending on the source, a 4x4 block image is saved to either BMP or EXR file formats, which can later be used for repeated analysis.
Using a Mouse Wheel for Zoom¶
Rotating the mouse wheel in or out will also zoom the image in increments of 10. To zoom at a faster rate (increments of 100) hold down the keyboard Ctrl key and rotate the mouse wheel. Zoom will be centered on the current mouse cursor location.
Using the Mouse to Move the Image in the View¶
To move the image around the view, place the mouse over the image and press down the left mouse button. While keeping it pressed, move the image around the view. To stop the move, release the left mouse button.
Note: you can only perform these operations when the mouse cursor is over the image.
Adding additional Image Formats¶
There are a number of default image file formats that are supported by the application
|PNG||Portable Network Graphics|
|EXR||High Dynamic Range Images|
|DDS||Direct Draw Surface files|
|KTX||Khronos Texture Files|
|TGA||Targa Texture files|
|TIFF||Tagged Image File Format files|
Support for EXR, DDS and KTX are linked into the main application and cannot be overwritten
PNG and BMP are supported by QT (along with a number of other formats PBM, PGM, PPM, XBM and XPM.)
TGA (24 bit uncompressed images) and TIF are supported by DLL’s in the plugin folder AMD Compress\plugins\imageformats
Users can add additional file format by placing appropriate Qt Image plugins into \plugins\imageformats folder.
Note: These DLL’s must support variations of decompressed images in ARGB32 or ARGB32F
Image View switch between Original and Processed¶
This feature allows users to switch quickly between Original Image View and Processed Image View (Processed refers to Compressed Image View or Pixels Difference Image View) by simple key stokes (O or P) or from the Image View bar dropdown list. This allows users to have a visual comparison between Original and Processed images.
After compressing image, click on the green circle beside the compressed Image to generate the image view window as shown below:
Click on the Image View window to set focus, then hit “Space” bar to switch between Original and Processed (In this case, Processed refers to Compressed Image) Image Views. You can also switch between Processed and and Original Views by select the related views from the combo drop down list
To change the Processed Image View to Image Diff View, click on the icon beside the , observed that Processed View now shows Image Diff View (In this case, Processed refers to Image Diff), you can switch between Original and Image Diff View by hitting the “Space” bar. Note: You may need to increase the Image Brightness by clicking on to view the Processed Image Diff.
To change the Processed Image View back to Compressed Image View, click on the same icon .