Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

save bitmap to SdCard  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Guys
im using that code to save bitmap to SdC


the problem is thati dont want to compress the bitmap , mean don't want any change on pixels ""bits""


 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PNG is a lossless image compression format (as opposed to JPEG, for example). Have you actually experienced pixels being changed during a roundtrip compression/decompression?
 
alex ki
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:PNG is a lossless image compression format (as opposed to JPEG, for example). Have you actually experienced pixels being changed during a roundtrip compression/decompression?



i done it with these steps :
get R,G,B from every pixel and convert it to Binary array then change the LSB to 0 or 1
then convert it from binary to dec
then set-pixel method

after that i save it with the code above
i don know where the problem is :S
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!