MCPcopy Create free account
hub / github.com/ImageEngine/cortex / renderResolution

Method renderResolution

src/IECoreScene/Camera.cpp:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369
370
371Imath::V2i Camera::renderResolution() const
372{
373 V2i origResolution = getResolution();
374 float resolutionMultiplier = getResolutionMultiplier();
375 return V2i(
376 std::max( 1, int((float)origResolution.x * resolutionMultiplier) ),
377 std::max( 1, int((float)origResolution.y * resolutionMultiplier) )
378 );
379}
380
381Imath::Box2i Camera::renderRegion() const
382{

Callers 1

testRenderImageSpecMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected