diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/graphicfilter.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/graphicfilter.hxx b/include/vcl/graphicfilter.hxx index 2c9ad85b96a0..d84ae3f0a9fa 100644 --- a/include/vcl/graphicfilter.hxx +++ b/include/vcl/graphicfilter.hxx @@ -142,6 +142,7 @@ class VCL_DLLPUBLIC GraphicDescriptor final sal_uInt16 nPlanes; GraphicFileFormat nFormat; bool bOwnStream; + sal_uInt8 mnNumberOfImageComponents; void ImpConstruct(); @@ -208,6 +209,9 @@ public: /** @return bits/pixel or 0 **/ sal_uInt16 GetBitsPerPixel() const { return nBitsPerPixel; } + /** @return number of color channels */ + sal_uInt8 GetNumberOfImageComponents() const { return mnNumberOfImageComponents; } + /** @return filter number that is needed by the GraphFilter to read this format */ static OUString GetImportFormatShortName( GraphicFileFormat nFormat ); }; |