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
[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 - Canvas drawBitmap

Canvas drawBitmap

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Canvas drawBitmap

Postby gandrakar » Mon Apr 26, 2010 9:26 am

Hi everyone,

For a private application I manipulate pictures.

In order to test my algorithm I apply it on a picture and try to load the result on the simulator using Canvas class and drawBitmap function.

However nothing happens and it's the original picture which is displayed.

Code: Select all
Canvas newPicture = new Canvas();
      newPicture.drawBitmap(thresholdPixels, 0,calculator.getPictureHeight(), 0, 0, calculator.getPictureHeight(), calculator.getPictureWidth(), false, null);
      
      canvas.draw(newPicture);
      canvas.invalidate();


There are no compilations errors.
Moreover, I have a second problem : My screen is in landscape mode but when I try to get picture's width android returns picture's height.

I'm working on 2.0.1 SDK
Island : We have no cash but we have ash
gandrakar
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Apr 26, 2010 9:16 am
Location: Rambouillet

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests