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 (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 () const
 
tools::Long Width () const
 
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 21 of file RawBitmap.hxx.

Constructor & Destructor Documentation

◆ RawBitmap()

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

Definition at line 29 of file RawBitmap.hxx.

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

Member Function Documentation

◆ GetBitCount()

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

Definition at line 74 of file RawBitmap.hxx.

◆ GetPixel()

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

Definition at line 62 of file RawBitmap.hxx.

References ColorAlpha, maSize, and p.

◆ Height()

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

Definition at line 72 of file RawBitmap.hxx.

References maSize.

◆ SetAlpha()

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

Definition at line 56 of file RawBitmap.hxx.

References maSize, and p.

◆ SetPixel() [1/2]

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

◆ SetPixel() [2/2]

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

Definition at line 47 of file RawBitmap.hxx.

References Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), maSize, and p.

Referenced by ImportEpsGraphic(), and SetByte().

◆ Width()

tools::Long vcl::bitmap::RawBitmap::Width ( ) const
inline

Definition at line 73 of file RawBitmap.hxx.

References maSize.

Friends And Related Function Documentation

◆ CreateFromData

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 228 of file BitmapTools.cxx.

Member Data Documentation

◆ maSize

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

Definition at line 25 of file RawBitmap.hxx.

◆ mnBitCount

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

Definition at line 26 of file RawBitmap.hxx.

◆ mpData

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

Definition at line 24 of file RawBitmap.hxx.


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