LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | Friends | List of all members
vcl::bitmap::RawBitmap Class Reference

Intended to be used to feed into CreateFromData to create a BitmapEx. More...

#include <RawBitmap.hxx>

Collaboration diagram for vcl::bitmap::RawBitmap:
[legend]

Public Member Functions

 RawBitmap (Size const &rSize, sal_uInt8 nBitCount)
 
void SetPixel (long nY, long nX, Color nColor)
 
Color GetPixel (long nY, long nX) const
 
void SetPixel (long nY, long nX, BitmapColor nColor)=delete
 
long Height ()
 
long Width ()
 
sal_uInt8 GetBitCount () const
 

Private Attributes

std::unique_ptr< sal_uInt8[]> mpData
 
Size maSize
 
sal_uInt8 mnBitCount
 

Friends

BitmapEx VCL_DLLPUBLIC CreateFromData (RawBitmap &&rawBitmap)
 Copy block of image data into the bitmap. More...
 

Detailed Description

Intended to be used to feed into CreateFromData to create a BitmapEx.

RGB data format.

Definition at line 17 of file RawBitmap.hxx.

Constructor & Destructor Documentation

vcl::bitmap::RawBitmap::RawBitmap ( Size const &  rSize,
sal_uInt8  nBitCount 
)
inline

Definition at line 25 of file RawBitmap.hxx.

References assert(), Size::getHeight(), and Size::getWidth().

Member Function Documentation

sal_uInt8 vcl::bitmap::RawBitmap::GetBitCount ( ) const
inline

Definition at line 60 of file RawBitmap.hxx.

Color vcl::bitmap::RawBitmap::GetPixel ( long  nY,
long  nX 
) const
inline

Definition at line 48 of file RawBitmap.hxx.

References Size::getWidth(), and p.

long vcl::bitmap::RawBitmap::Height ( )
inline

Definition at line 58 of file RawBitmap.hxx.

References Size::Height().

void vcl::bitmap::RawBitmap::SetPixel ( long  nY,
long  nX,
Color  nColor 
)
inline
void vcl::bitmap::RawBitmap::SetPixel ( long  nY,
long  nX,
BitmapColor  nColor 
)
delete
long vcl::bitmap::RawBitmap::Width ( )
inline

Definition at line 59 of file RawBitmap.hxx.

References Size::Width().

Friends And Related Function Documentation

BitmapEx VCL_DLLPUBLIC CreateFromData ( RawBitmap &&  rawBitmap)
friend

Copy block of image data into the bitmap.

Assumes that the Bitmap has been constructed with the desired size.

Definition at line 188 of file BitmapTools.cxx.

Member Data Documentation

Size vcl::bitmap::RawBitmap::maSize
private

Definition at line 21 of file RawBitmap.hxx.

sal_uInt8 vcl::bitmap::RawBitmap::mnBitCount
private

Definition at line 22 of file RawBitmap.hxx.

std::unique_ptr<sal_uInt8[]> vcl::bitmap::RawBitmap::mpData
private

Definition at line 20 of file RawBitmap.hxx.


The documentation for this class was generated from the following file: