icetPhysicalRenderSize(3) IceT Reference icetPhysicalRenderSize(3)NAME
icetPhysicalRenderSize -- set the size of images that are rendered
Synopsis
#include <IceT.h>
void icetPhysicalRenderSize( IceTInt width,
IceTInt height );
Description
Specify the size of images that are rendered with icetPhysicalRenderSize. This is the size of image that is expected to be rendered by the
draw callback (specified with icetDrawCallback). The width and height are captured in the ICET_PHYSICAL_RENDER_WIDTH and ICET_PHYSI-
CAL_RENDER_HEIGHT state variables.
The size of images that are rendered do not have to be the same size as the tile they are rendering so long as they are not smaller in any
dimension. In fact, when rendering multiple tiles it can often save time to render larger images. Nevertheless, by default the physical
render size is set to the size of the tiles in icetAddTile because this is the most common use case.
When using the OpenGL rendering layer, the physical rendering size is overridden to the size of the OpenGL viewport in each call to icetGL-
DrawFrame.
Errors
None.
Warnings
ICET_INVALID_VALUE
The width or height specified is smaller than that for the largest tile.
Bugs
None known.
Copyright
Copyright (C)2010 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
See AlsoicetAddTile(3)IceT Reference August 9, 2010 icetPhysicalRenderSize(3)
Check Out this Related Man Page
icetImageGetNumPixels(3) IceT Reference icetImageGetNumPixels(3)NAME
icetImageGetWidth,icetImageGetHeight,icetImageGetNumPixels-- get dimensions of an image
Synopsis
#include <IceT.h>
IceTSizeType icetImageGetWidth ( const IceTImage image );
IceTSizeType icetImageGetHeight ( const IceTImage image );
IceTSizeType icetImageGetNumPixels ( const IceTImage image );
Description
icetImageGetWidth,icetImageGetHeight,and icetImageGetNumPixelsallow you to query the size of an image with respect to the number of pixels.
These functions define the buffer size returned by icetImageGetColor and icetImageGetDepth.
Return Value
icetImageGetWidthreturns the number of pixels along the horizontal axis of the image and icetImageGetHeightreturns the number of pixels
along the vertical axis of the image. icetImageGetNumPixelsis a convenience function that returns the total number of pixels in image (the
width times the height).
Errors
None.
Warnings
None.
Bugs
None known.
Copyright
Copyright (C)2010 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
See AlsoicetImageGetColor(3), icetImageGetDepth(3)IceT Reference August 9, 2010 icetImageGetNumPixels(3)
Is there a script or extension that I can look into that will re-size an allotment of images to a given size?? Id like to take images of a certain size and resize them but Im dont remember an install option that can do it if installed in ubuntu but I, also unsure in what code I will have to learn.... (2 Replies)