int ImfHeaderSetBox2fAttribute (ImfHeader *hdr, const char name[], float xMin, float yMin, float xMax, float yMax) { try { Box2f box (V2f (xMin, yMin), V2f (xMax, yMax)); if (header(hdr)->find(name) == header(hdr)->end()) { header(hdr)->insert (name, Imf::Box2fAttribute (box)); } else { header(hdr)->typedAttribute<Imf::Box2fAttribute>(name).value() = box; } return 1; } catch (const std::exception &e) { setErrorMessage (e); return 0; } }
void ImfHeaderSetScreenWindowCenter (ImfHeader *hdr, float x, float y) { header(hdr)->screenWindowCenter() = V2f (x, y); }