2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FGrpBitmapCommon.h
19 * @brief This is the header file for the %Bitmap class.
21 * This header file contains the definitions of the enumerations of the %Bitmap class.
24 #ifndef _FGRP_BITMAP_COMMON_H_
25 #define _FGRP_BITMAP_COMMON_H_
27 namespace Tizen { namespace Graphics
31 * @enum BitmapPixelFormat
33 * Defines the bitmap pixel format.
37 enum BitmapPixelFormat
39 BITMAP_PIXEL_FORMAT_RGB565 = 1, /**< The RGB565 pixel format */
40 BITMAP_PIXEL_FORMAT_ARGB8888, /**< The ARGB8888 pixel format */
41 BITMAP_PIXEL_FORMAT_R8G8B8A8, /**< The R8G8B8A8 pixel format, the order of the color component is guaranteed by the byte unit */
42 BITMAP_PIXEL_FORMAT_MAX, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
43 BITMAP_PIXEL_FORMAT_MIN = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
49 * Defines the bitmap buffer scaling type.
56 BUFFER_SCALING_NONE = 1, /**< The bitmap buffer is created without scaling */
57 BUFFER_SCALING_AUTO, /**< The bitmap buffer is created according to the auto scaling rule */
58 BUFFER_SCALING_MAX, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
59 BUFFER_SCALING_MIN = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
63 * @enum BitmapScalingQuality
65 * Defines the bitmap scaling quality.
69 * @remarks The Bitmap::Scale() method performs the operation according to the given BitmapScalingQuality value. @n
70 * Bitmap scaling with BITMAP_SCALING_QUALITY_HIGH provides better results than others, but it takes longer.
71 * On the other hand, bitmap scaling with BITMAP_SCALING_QUALITY_LOW runs faster than others, but the results are poorer.
72 * When you scale bitmaps with a masking color then you have to select BITMAP_SCALING_QUALITY_LOW,
73 * because that algorithm does not harm the masking color (by sampling the pixels instead of interpolating).
75 enum BitmapScalingQuality
77 BITMAP_SCALING_QUALITY_LOW, /**< Low-quality but high-performance */
78 BITMAP_SCALING_QUALITY_MID, /**< Mid-quality */
79 BITMAP_SCALING_QUALITY_HIGH /**< High-quality but low-performance */
82 } } // Tizen::Graphics