0023673: Static method Image_PixMap::SizePixelBytes is not exported
authorsan <san@opencascade.com>
Thu, 27 Dec 2012 06:43:05 +0000 (10:43 +0400)
committersan <san@opencascade.com>
Fri, 18 Jan 2013 08:14:13 +0000 (12:14 +0400)
Static method Standard_Size SizePixelBytes (const Image_PixMap::ImgFormat thePixelFormat)
exported under Windows to prevent link error in the user code.

src/Image/Image_PixMap.hxx

index 7516048..85532bd 100644 (file)
@@ -215,7 +215,7 @@ public: // low-level API for batch-processing (pixels reading / comparison / mod
   }
 
   //! @return bytes reserved for one pixel (may include extra bytes for alignment).
-  static Standard_Size SizePixelBytes (const Image_PixMap::ImgFormat thePixelFormat);
+  Standard_EXPORT static Standard_Size SizePixelBytes (const Image_PixMap::ImgFormat thePixelFormat);
 
   //! @return bytes reserved per row.
   //! Could be larger than needed to store packed row (extra bytes for alignment etc.).