Home
»
Posts filed under
bitmap
Showing posts with label bitmap. Show all posts
Showing posts with label bitmap. Show all posts
1.description:
LRUCache is a caching strategy where we use Least Recently Used (LRU) eviction policy when the cache is full and we want to add more new data to the cache. LRU cache is used in many caching applications. For example memcached uses LRU cache.
LRUCache cache was introduced in API level 12 (3.1) but is available through the Support Library back to 1.6. It is a generic class
1. description:
One of the common mistakes developers often make is that never take care of Bitmap objects stored in a data structure like List, LinkedList, HashMap.
public class BitmapStorage {
String mContent;
ArrayList
// constructor to create the objects
public BitmapStorage(String content, ArrayList
mContent = content;
1.description:
An
android app has some limitations when it comes to memory availability. Unlike a
normal Java app, you do not have luxury of expanding memory your application
uses, as it will be completely dependent on the device on which the app is
running, memory available in the phone, number of applications running
simultaneously. We will not have control over these external factors so we
Before Water Mark
After Water Mark
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
create main layout:
One image view to display the image.
Before Round Cornered
After Round Cornered
Round=30
Round=60
Round=30
Round=60
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
create main layout:
One
Before Flipping
After Flipping
flipped horizontal in mobile
Horizontal Flip
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
create main layout:
One image view to
Before Rotation
After Rotation
180 Degree
270 Degree
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1. create main layout:
One image view to display the image.
Before Flea Effect
After Flea Effect
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
create main layout:
One image view to display the image
Before Shading Filter Effect
After Shading Filter Effect
shading color= -15000
shading color= -30000
shading color= -105000
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than
Before Saturation Filter Effect
After Saturation Filter Effect
saturation level:2
saturation level:3
saturation level:5
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than
Before Sharpness change
After Sharpness change
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1.create main layout:
One image view to display the image.
Before Gaussian Blur
After Gaussian Blur
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1.create main layout:
One image view to display the image.
Before Color Boost
After Color Boost
type=1,percent=60
type=2,percent=60
type=3,percent=60
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1. create main layout:
Before Brightness change
After Brightness Change
brightness 50
brightness 90
brightness -40
brightness -60
brightness -80
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or
Before Contrast
After Black/White Contrast
Contrast 50
Contrast 100
After Color Contrast
Contrast 100
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1.
Before reducind color depth
After reducind color depth
64bit
128bit
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1.create main layout:
One image view to
Before Sepia-toning Effect
After Sepia-toning Effect
more red
more blue
more red,blue
more red,green
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1. create
Before Color Correction
After Color Correction
Color correction at R=0,G=1,B=0
Color correction at R=1,G=0,B=0
Color correction at R=0.5,G=0.5,B=0.5
Color correction at R=1.5,G=1,B=1
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name:
Before Gamma Correction
After Gamma Correction
Gamma (red=0.5,green=0.5,yellow0.5)
Gamma (red=0.6,green=0.6,yellow0.6)
Gamma (red=0.8,green=0.8,yellow0.8)
Gamma (red=1.0,green=1.0,yellow=1.0)
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name:
Before Gray Scale
After Gray Scale
Create new Android Project
Project Name: PlayingwithBitmaps
Build Target: Android 2.3.3 //or greater than that
Application Name: PlayingwithBitmaps
Package Name: com.hamad.playingwithbitmaps
Create Activity: Main
Min SDK: 10 // or greater than that
1. create main layout:
One image view to display the image.
Subscribe to:
Posts
(
Atom
)