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 <BitmapTools.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 ()
 

Private Attributes

std::unique_ptr< sal_uInt8[]> mpData
 
Size const maSize
 
sal_uInt8 const 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 42 of file BitmapTools.hxx.

Constructor & Destructor Documentation

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

Definition at line 49 of file BitmapTools.hxx.

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

Member Function Documentation

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

Definition at line 83 of file BitmapTools.hxx.

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

Definition at line 71 of file BitmapTools.hxx.

References Size::getWidth().

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

Definition at line 81 of file BitmapTools.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 82 of file BitmapTools.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 182 of file BitmapTools.cxx.

Member Data Documentation

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

Definition at line 46 of file BitmapTools.hxx.

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

Definition at line 47 of file BitmapTools.hxx.

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

Definition at line 45 of file BitmapTools.hxx.


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