def GetSubBitmap(self, x: int, y: int, width: int, height: int) -> '<STR_LIT>':
colors = self.GetPixelColorsOfRect(x, y, width, height)<EOL>bitmap = Bitmap(width, height)<EOL>bitmap.SetPixelColorsOfRect(<NUM_LIT:0>, <NUM_LIT:0>, width, height, colors)<EOL>return bitmap<EOL>
x: int.
y: int.
width: int.
height: int.
Return `Bitmap`, a sub bitmap of the input rect.