change tansformed to transformed

Signed-off-by: baimin <baimin@leyinke.cn>
This commit is contained in:
baimin
2022-07-22 21:50:46 +08:00
parent 0041f4ff7a
commit e1aa011c05
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ uint32_t Color::ColorTo32(Color16 color, uint8_t alpha)
{
Color32 ret;
/*
* when 16-bitmap image is tansformed to 32-bitmap,
* when 16-bitmap image is transformed to 32-bitmap,
* R should shift left 3 bits,
* G should shift left 2 bits,
* B should shift left 3 bits,
@@ -83,7 +83,7 @@ uint32_t Color::ColorTo32(Color16 color, uint8_t alpha)
uint16_t Color::ColorTo16(Color32 color)
{
/*
* when 32-bitmap image is tansformed to 16-bitmap,
* when 32-bitmap image is transformed to 16-bitmap,
* R should shift right 3 bits,
* G should shift right 2 bits,
* B should shift right 3 bits,
+2 -2
View File
@@ -45,7 +45,7 @@ uint16_t PixelFormatUtils::ARGB8888ToARGB1555(uint32_t color)
in.full = color;
ret.alpha = in.alpha ? 1 : 0;
/*
* when 32-bitmap image is tansformed to 16-bitmap
* when 32-bitmap image is transformed to 16-bitmap
* R should shift right 3 bits
* G should shift right 3 bits
* B should shift right 3 bits
@@ -63,7 +63,7 @@ uint32_t PixelFormatUtils::ARGB1555ToARGB8888(uint16_t color)
in.full = color;
ret.alpha = in.alpha ? 0xFF : 0x0;
/*
* when 16-bitmap image is tansformed to 32-bitmap
* when 16-bitmap image is transformed to 32-bitmap
* R should shift left 3 bits
* G should shift left 3 bits
* B should shift left 3 bits