// bitmapTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
const int maxNum = 10000;
int data[maxNum/32 + 1];
void clear(){
int i = 0;
for (;i <maxNum/32+1;i++){
data[i] = 0;
}
}
void addValue(int num){
//int index = num/32;
int index = num>>5;
data[index] |= 1<<(num &0x1F) ;
}
bool
bitmap测试
最新推荐文章于 2022-01-10 19:03:09 发布
本文深入探讨了Android中Bitmap的使用,包括内存管理、解码优化和性能测试,揭示了如何有效地处理图像数据,避免内存泄漏和提高应用性能。
摘要由CSDN通过智能技术生成