def FromFile(self, filePath: str) -> bool:
self.Release()<EOL>self._bitmap = _DllClient.instance().dll.BitmapFromFile(ctypes.c_wchar_p(filePath))<EOL>self._getsize()<EOL>return self._bitmap > <NUM_LIT:0><EOL>
Load image from a file.
filePath: str.
Return bool, True if succeed otherwise False.