Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

save bitmap to SdCard

 
alex ki
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""


 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!