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
[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 - Difference between PixelGrabber and onPictureTaken method?

Difference between PixelGrabber and onPictureTaken method?

Tutorials with advanced 'difficulty' and more Lines of Code.

Difference between PixelGrabber and onPictureTaken method?

Postby minhzc » Tue Aug 04, 2009 7:05 pm

I have two code implements:
Code: Select all
Camera.PictureCallback photoCallback=new Camera.PictureCallback()
   {
      public void onPictureTaken(byte[] data, Camera camera)
      {
                    ...
                }

above is the code for Android environment.
and this code below is for Windows environment:
Code: Select all
PixelGrabber grabber = new PixelGrabber(image, 0, 0, width, height, data, 0, width);
   grabber.grabPixels();


I have some questions, what is the difference of the data[] output value of two implements above?
Can "image" value in PixelGrabber store Bitmap data?
And the data array that PixelGrabber grabbing is the same meaning as data array in onPictureTaken?(I don't mind if the difference is byte and int).
If they are different, I wonder how to convert the second data array to Byte array of Bitmap data.
Thank you alot!.
minhzc
Freshman
Freshman
 
Posts: 8
Joined: Sun Aug 02, 2009 10:26 am
Location: Vietnam

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest