MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / pixelWidth

Method pixelWidth

src/tiffimage.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100uint32_t TiffImage::pixelWidth() const {
101 if (pixelWidthPrimary_ != 0) {
102 return pixelWidthPrimary_;
103 }
104
105 ExifKey key(std::string("Exif.") + primaryGroup() + std::string(".ImageWidth"));
106 auto imageWidth = exifData_.findKey(key);
107 if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
108 pixelWidthPrimary_ = imageWidth->toUint32();
109 }
110 return pixelWidthPrimary_;
111}
112
113uint32_t TiffImage::pixelHeight() const {
114 if (pixelHeightPrimary_ != 0) {

Callers

nothing calls this directly

Calls 4

findKeyMethod · 0.45
endMethod · 0.45
countMethod · 0.45
toUint32Method · 0.45

Tested by

no test coverage detected