全站数据
8 4 2 0 5 8 1

怎样才能RGB565直接嫖狟MP格式,不用FATFS-STM32-F0/F1/F2专区

吉林函授成考 | 简单学习,快乐成才!         
问题更新日期:2024-10-14 18:13:21

问题描述

怎样才能RGB565直接嫖狟MP格式,不用FATFS-STM32-F0/F1/F2专区,在线求解答
精选答案
最佳答案

public int getTextWidth(String text, Paint paint) {Rect bounds = new Rect()

;paint.getTextBounds(text, 0, text.length(), bounds)

;int width = bounds.left + bounds.width()

;return width;

}public int getTextHeight(String text, Paint paint) {Rect bounds = new Rect()

;paint.getTextBounds(text, 0, text.length(), bounds)

;int height = bounds.bottom + bounds.height()

;return height;}