Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我正在捕获图像并将其插入数据库中。这工作正常。但是如果没有捕获图像,那么它的默认值是多少?我Bitmap用于捕获并将byte[]其存储到数据库中。谁能告诉我位图的默认值是多少?
Bitmap
byte[]
如果您没有为您的位图分配资源(即,如果您像这样声明它Bitmap b;或Bitmap b=null;)或者如果您尝试分配无效资源,则该值将为null.
Bitmap b;
Bitmap b=null;
null