Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - HELP !!! cropping image

HELP !!! cropping image

All your problems with Audio, Video and Images.

HELP !!! cropping image

Postby eee » Mon Aug 01, 2011 9:36 am

i need the code to do this :
the user will choose a rect in the image and the code crop the image by cutting everything except the rect.
am using eclipse android plateform 2.3.1 API 9
eee
Freshman
Freshman
 
Posts: 7
Joined: Wed Jul 27, 2011 6:46 pm

Top

Re: HELP !!! cropping image

Postby vishal.trivedi » Wed Nov 23, 2011 11:03 am

hii

if you hv answr by any chance plz let me knw...
thnx
vishal.trivedi
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 28, 2011 4:21 am

Re: HELP !!! cropping image

Postby stece » Thu Dec 01, 2011 12:24 pm

You can use the Bitmap class to do that.
More information about this class: http://developer.android.com/reference/ ... itmap.html


Look at the "createBitmap" function. If you have the dimensions and coordinates of the area you need to crop and the source image, you can just create a new BitMap.
User avatar
stece
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Wed Apr 21, 2010 10:50 am
Location: Belgium

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 9 guests