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:

Public Member Functions

 RawBitmap (Size const &rSize, sal_uInt8 nBitCount)
void SetPixel (tools::Long nY, tools::Long nX, Color nColor)
void SetAlpha (tools::Long nY, tools::Long nX, sal_uInt8 nAlpha)
Color GetPixel (tools::Long nY, tools::Long nX) const
void SetPixel (tools::Long nY, tools::Long nX, BitmapColor nColor)=delete
tools::Long Height ()
tools::Long Width ()
sal_uInt8 GetBitCount () const

Private Attributes

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


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 21 of file RawBitmap.hxx.

Constructor & Destructor Documentation

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

Definition at line 29 of file RawBitmap.hxx.

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

Member Function Documentation

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

Definition at line 74 of file RawBitmap.hxx.

Color vcl::bitmap::RawBitmap::GetPixel ( tools::Long  nY,
tools::Long  nX 
) const

Definition at line 62 of file RawBitmap.hxx.

References ColorAlpha, Size::getWidth(), and p.

tools::Long vcl::bitmap::RawBitmap::Height ( )

Definition at line 72 of file RawBitmap.hxx.

References Size::Height().

void vcl::bitmap::RawBitmap::SetAlpha ( tools::Long  nY,
tools::Long  nX,
sal_uInt8  nAlpha 

Definition at line 56 of file RawBitmap.hxx.

References Size::getWidth(), and p.

void vcl::bitmap::RawBitmap::SetPixel ( tools::Long  nY,
tools::Long  nX,
Color  nColor 
void vcl::bitmap::RawBitmap::SetPixel ( tools::Long  nY,
tools::Long  nX,
BitmapColor  nColor 
tools::Long vcl::bitmap::RawBitmap::Width ( )

Definition at line 73 of file RawBitmap.hxx.

References Size::Width().

Friends And Related Function Documentation

BitmapEx VCL_DLLPUBLIC CreateFromData ( RawBitmap &&  rawBitmap)

Copy block of image data into the bitmap.

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

Definition at line 206 of file BitmapTools.cxx.

Member Data Documentation

Size vcl::bitmap::RawBitmap::maSize

Definition at line 25 of file RawBitmap.hxx.

sal_uInt8 vcl::bitmap::RawBitmap::mnBitCount

Definition at line 26 of file RawBitmap.hxx.

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

Definition at line 24 of file RawBitmap.hxx.

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