Click here to Skip to main content
15,921,351 members
Home / Discussions / Java
   

Java

 
Questionhow to include web cam image in gui through applet Pin
steven8Gerrard6-Jun-11 20:33
steven8Gerrard6-Jun-11 20:33 
AnswerRe: how to include web cam image in gui through applet Pin
Richard MacCutchan6-Jun-11 21:55
mveRichard MacCutchan6-Jun-11 21:55 
QuestionI NEED HELP URGENTLY! Pin
Matjaz-xyz6-Jun-11 11:15
Matjaz-xyz6-Jun-11 11:15 
AnswerRe: I NEED HELP URGENTLY! Pin
Cedric Moonen6-Jun-11 20:59
Cedric Moonen6-Jun-11 20:59 
AnswerRe: I NEED HELP URGENTLY! Pin
TorstenH.6-Jun-11 21:02
TorstenH.6-Jun-11 21:02 
QuestionImage identification Pin
kartikdasani5-Jun-11 21:03
kartikdasani5-Jun-11 21:03 
AnswerRe: Image identification Pin
jschell6-Jun-11 9:16
jschell6-Jun-11 9:16 
QuestionHow to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 6:09
Bosah Chude2-Jun-11 6:09 
I have PictureDrawable that I wish to save as an image (JPEG/PNG) but I can't seem to find any information how to go about this.

I tried this but it does not seem to work

PictureDrawable myDrawable = GetPictureDrawable(); 
Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888);
myDrawable.draw(new Canvas(bitmap));
bitmap.compress(CompressFormat.JPEG, 100,  new FileOutputStream("/MyLocation/MyImage.jpg"));


What am I doing wrongly?
www.belfox.net
...Simplicity at its best

AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
TorstenH.2-Jun-11 13:10
TorstenH.2-Jun-11 13:10 
AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? [modified] Pin
xmxkkk2-Jun-11 19:14
xmxkkk2-Jun-11 19:14 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 22:48
Bosah Chude2-Jun-11 22:48 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
xmxkkk3-Jun-11 1:20
xmxkkk3-Jun-11 1:20 
Questionembed an excel sheet into a java GUI Pin
kartikdasani1-Jun-11 21:43
kartikdasani1-Jun-11 21:43 
AnswerRe: embed an excel sheet into a java GUI Pin
Wyne Ci1-Jun-11 22:33
Wyne Ci1-Jun-11 22:33 
AnswerWow, That's Hell Pin
Johnny Ess22-Jun-11 7:12
Johnny Ess22-Jun-11 7:12 
AnswerRe: embed an excel sheet into a java GUI Pin
kikeri16-Aug-11 14:08
kikeri16-Aug-11 14:08 
QuestionAdding text to an existing file or create it if not existant Pin
Matjaz-xyz1-Jun-11 21:11
Matjaz-xyz1-Jun-11 21:11 
AnswerRe: Adding text to an existing file or create it if not existant Pin
TorstenH.2-Jun-11 12:59
TorstenH.2-Jun-11 12:59 
AnswerRe: Adding text to an existing file or create it if not existant Pin
lanmingle5-Jun-11 0:03
lanmingle5-Jun-11 0:03 
QuestionSelecting between base class and interface method... Pin
faheemnadeem29-May-11 8:01
faheemnadeem29-May-11 8:01 
AnswerRe: Selecting between base class and interface method... Pin
Luc Pattyn29-May-11 8:40
sitebuilderLuc Pattyn29-May-11 8:40 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:04
faheemnadeem29-May-11 9:04 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:05
faheemnadeem29-May-11 9:05 
AnswerRe: Selecting between base class and interface method... Pin
Luc Pattyn29-May-11 9:11
sitebuilderLuc Pattyn29-May-11 9:11 
GeneralRe: Selecting between base class and interface method... Pin
faheemnadeem29-May-11 9:26
faheemnadeem29-May-11 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.