0

Hope you doing fine! I want to use bitmaps in my c# code in unity. But I can't implement bitmaps onto my code, because System.Drawing doesn't work in unity. Also my project is for android devices so I am looking for a solution for android. I couldn't find any useful stuff on the web. even if i did, i didn't understand. Thank you in advance!

YGreater
  • 42
  • 1
  • 11
  • 2
    You can use jpg or png in unity, isn't that enough? – shingo Aug 14 '22 at 08:42
  • @shingo yes I know that. I am just trying to make code from https://stackoverflow.com/questions/31398958/grabbing-frames-from-a-hikvision-ip-camera?rq=1 to work – YGreater Aug 14 '22 at 09:13
  • 1
    See following : https://developer.android.com/topic/performance/graphics/manage-memory#:~:text=bitmap%20is%20no%20longer%20being%20used.%20If%20you,counting%20%28in%20the%20variables%20mDisplayRefCountand%20mCacheRefCount%29%20to%20track – jdweng Aug 14 '22 at 09:18
  • Sorry for late response! Thanks a lot! That's what I have been looking for. But somehow I couldn't find it. Maybe I'm a bad researcher. Thank you – YGreater Aug 19 '22 at 00:46

1 Answers1

0

Thanks to @jdweng for the link! It is android.graphics.bitmap

YGreater
  • 42
  • 1
  • 11