Dali 3D User Interface Engine
image-loader.h
Go to the documentation of this file.
1 #ifndef __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
2 #define __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 // EXTERNAL INCLUDES
25 
26 // INTERNAL INCLUDES
28 
29 namespace Dali
30 {
31 namespace TizenPlatform
32 {
33 namespace ImageLoader
34 {
44 bool ConvertStreamToBitmap( const Integration::ResourceType& resourceType, std::string path, FILE * const fp, const ResourceLoadingClient& client, Integration::BitmapPtr& ptr);
45 
53 bool ConvertBitmapToStream( std::string path, FILE * const fp, Integration::BitmapPtr& ptr );
54 
55 
56 Integration::ResourcePointer LoadResourceSynchronously( const Integration::ResourceType& resourceType, const std::string& resourcePath );
57 
58 ImageDimensions GetClosestImageSize( const std::string& filename,
59  ImageDimensions size,
60  FittingMode::Type fittingMode,
61  SamplingMode::Type samplingMode,
62  bool orientationCorrection );
63 
65  ImageDimensions size,
66  FittingMode::Type fittingMode,
67  SamplingMode::Type samplingMode,
68  bool orientationCorrection );
69 
70 } // ImageLoader
71 } // TizenPlatform
72 } // Dali
73 
74 #endif // __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
Dali Docs Home
Read more about Dali