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 - merged file not the same size as camera

merged file not the same size as camera

All your problems with Audio, Video and Images.

merged file not the same size as camera

Postby izeko » Mon Oct 11, 2010 11:53 pm

Hi

What i am trying to do is display a overlay picture on the camera preview. This works ok and the size is fine, but when i merge the camera and the overlay the overlay picture is too small. Is there a way to make a bitmap larger.

Or

Does anyone have any ideas to merge the camera and a overlay image.


This is my code for merging the 2 files
combineImages(Bitmap c, Bitmap s, String loc) {
Bitmap x = null;
x = Bitmap.createBitmap(s.getWidth(), s.getHeight(), s.getConfig());
Canvas canvas = new Canvas(x);
canvas.drawBitmap(s, new Matrix(), null);
//canvas.drawBitmap(resizedBitmap, new Matrix(), null);
canvas.drawBitmap(c, new Matrix(), null);

String tmpImg = String.valueOf(System.currentTimeMillis()) + ".png";

OutputStream os = null;
try {
os = new FileOutputStream(loc + tmpImg);
x.compress(CompressFormat.PNG, 100, os);
} catch(IOException e) {
Log.e("combineImages", "problem combining images", e);
}
}

}

I hope someone can help or point me in the right direction.

Thanks
izeko
Freshman
Freshman
 
Posts: 9
Joined: Mon Oct 11, 2010 11:46 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 4 guests