![]() |
Audacity 3.2.0
|
#include <memory>
#include <wx/defs.h>
Go to the source code of this file.
Typedefs | |
using | teBmps = int |
Functions | |
THEME_API std::unique_ptr< wxImage > | ChangeImageColour (wxImage *srcImage, wxColour &dstColour) |
THEME_API std::unique_ptr< wxImage > | ChangeImageColour (wxImage *srcImage, wxColour &srcColour, wxColour &dstColour) |
THEME_API std::unique_ptr< wxImage > | OverlayImage (wxImage *background, wxImage *foreground, wxImage *mask, int xoff, int yoff) |
THEME_API std::unique_ptr< wxImage > | OverlayImage (teBmps eBack, teBmps eForeground, int xoff, int yoff) |
The index of a bitmap resource in Theme Resources. More... | |
THEME_API std::unique_ptr< wxImage > | CreateBackground (int width, int height, wxColour colour) |
THEME_API std::unique_ptr< wxImage > | CreateAquaBackground (int width, int height, int offset) |
THEME_API std::unique_ptr< wxImage > | CreateSysBackground (int width, int height, int offset, wxColour colour) |
THEME_API void | PasteSubImage (wxImage *pDest, wxImage *pSrc, int x, int y) |
THEME_API wxImage | GetSubImageWithAlpha (const wxImage &Src, const wxRect &rect) |
using teBmps = int |
Definition at line 48 of file ImageManipulation.h.
THEME_API std::unique_ptr< wxImage > ChangeImageColour | ( | wxImage * | srcImage, |
wxColour & | dstColour | ||
) |
This looks at the first pixel in the image, and shifts the entire image by the vector difference between that pixel and the dstColour. For better control, use ChangeImageColour(wxImage, wxColour*, wxColour*) below
Definition at line 37 of file ImageManipulation.cpp.
References ChangeImageColour().
Referenced by ChangeImageColour(), and ThemeBase::RecolourBitmap().
THEME_API std::unique_ptr< wxImage > ChangeImageColour | ( | wxImage * | srcImage, |
wxColour & | srcColour, | ||
wxColour & | dstColour | ||
) |
This will explicitly shift the image color from srcColour to dstColour.
Definition at line 47 of file ImageManipulation.cpp.
THEME_API std::unique_ptr< wxImage > CreateAquaBackground | ( | int | width, |
int | height, | ||
int | offset | ||
) |
Definition at line 289 of file ImageManipulation.cpp.
Referenced by CreateSysBackground().
THEME_API std::unique_ptr< wxImage > CreateBackground | ( | int | width, |
int | height, | ||
wxColour | colour | ||
) |
Definition at line 266 of file ImageManipulation.cpp.
Referenced by CreateSysBackground().
THEME_API std::unique_ptr< wxImage > CreateSysBackground | ( | int | width, |
int | height, | ||
int | offset, | ||
wxColour | colour | ||
) |
THEME_API wxImage GetSubImageWithAlpha | ( | const wxImage & | Src, |
const wxRect & | rect | ||
) |
Gets a rectangle from within another image, INCLUDING the alpha channel
Definition at line 381 of file ImageManipulation.cpp.
Referenced by ThemeBase::ReadImageCache().
THEME_API std::unique_ptr< wxImage > OverlayImage | ( | teBmps | eBack, |
teBmps | eForeground, | ||
int | xoff, | ||
int | yoff | ||
) |
The index of a bitmap resource in Theme Resources.
Takes a background image, foreground image, and mask (i.e. the alpha channel for the foreground), and returns a NEW image where the foreground has been overlaid onto the background using alpha-blending, at location (xoff, yoff).
Definition at line 177 of file ImageManipulation.cpp.
References ThemeBase::Colour(), ThemeBase::Image(), and theTheme.
THEME_API std::unique_ptr< wxImage > OverlayImage | ( | wxImage * | background, |
wxImage * | foreground, | ||
wxImage * | mask, | ||
int | xoff, | ||
int | yoff | ||
) |
Takes a background image, foreground image, and mask (i.e. the alpha channel for the foreground), and returns a NEW image where the foreground has been overlaid onto the background using alpha-blending, at location (xoff, yoff).
Definition at line 111 of file ImageManipulation.cpp.
Referenced by ToolBar::MakeAlternateImages(), and ToolBar::MakeButton().
THEME_API void PasteSubImage | ( | wxImage * | background, |
wxImage * | foreground, | ||
int | xoff, | ||
int | yoff | ||
) |
Pastes one image into another including the alpha channel. Differs from OverlayImage in that: Happens in place to existing background image. Pastes image on top; no blending with existing background is done.
Definition at line 324 of file ImageManipulation.cpp.
Referenced by ThemeBase::CreateOneImageCache().