We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想请教下这个问题, 我先在用的是 CGImageGetHeight(image.CGImage) * CGImageGetBytesPerRow(image.CGImage); 好像不正确
The text was updated successfully, but these errors were encountered:
@shichuanyang 图片的内存大小的计算是:图片的像素宽 * 图片的像素高 * 每个像素所占的字节数 totalByte = pw * ph * 4 一个像素占4个字节(ARPG)
Sorry, something went wrong.
朋友 为何 pw * ph * 4 得出的结果 和把这行图片保存到相中的结果不一样呢
No branches or pull requests
想请教下这个问题,
我先在用的是 CGImageGetHeight(image.CGImage) * CGImageGetBytesPerRow(image.CGImage); 好像不正确
The text was updated successfully, but these errors were encountered: