Dali 3D User Interface Engine
Functions
Bitmap-to-Bitmap Image operations.

Functions

BitmapPtr Dali::Internal::Platform::ApplyAttributesToBitmap (Integration::BitmapPtr bitmap, ImageDimensions dimensions, FittingMode::Type fittingMode=FittingMode::DEFAULT, SamplingMode::Type samplingMode=SamplingMode::DEFAULT)
 Apply requested attributes to bitmap. More...
 
Integration::BitmapPtr Dali::Internal::Platform::DownscaleBitmap (Integration::Bitmap &bitmap, ImageDimensions desired, FittingMode::Type fittingMode, SamplingMode::Type samplingMode)
 Apply downscaling to a bitmap according to requested attributes. More...
 

Detailed Description

Function Documentation

Integration::BitmapPtr Dali::Internal::Platform::ApplyAttributesToBitmap ( Integration::BitmapPtr  bitmap,
ImageDimensions  dimensions,
FittingMode::Type  fittingMode = FittingMode::DEFAULT,
SamplingMode::Type  samplingMode = SamplingMode::DEFAULT 
)

Apply requested attributes to bitmap.

This is the top-level function which runs the on-load image post-processing pipeline. Bitmaps enter here as loaded from the file system by the file loaders and leave downscaled and filtered as requested by the application, ready for use.

Parameters
[in]bitmapThe input bitmap.
[in]requestedAttributesAttributes which should be applied to bitmap.
Returns
A bitmap which results from applying the requested attributes to the bitmap passed-in, or the original bitmap passed in if the attributes have no effect.

Definition at line 504 of file image-operations.cpp.

References Dali::Internal::Platform::CalculateDesiredDimensions(), Dali::Internal::Platform::CropAndPadForFittingMode(), Dali::Internal::Platform::DownscaleBitmap(), Dali::Uint16Pair::GetHeight(), Dali::Integration::Bitmap::GetImageHeight(), Dali::Integration::Bitmap::GetImageWidth(), Dali::Uint16Pair::GetWidth(), and Dali::Pixel::HasAlpha().

Referenced by Dali::TizenPlatform::ImageLoader::ConvertStreamToBitmap(), and PerformFittingTests().

Here is the call graph for this function:

Here is the caller graph for this function:

Integration::BitmapPtr Dali::Internal::Platform::DownscaleBitmap ( Integration::Bitmap &  bitmap,
ImageDimensions  desired,
FittingMode::Type  fittingMode,
SamplingMode::Type  samplingMode 
)
Dali Docs Home
Read more about Dali