class_docstr: Wrapper for the FI bitmap object.
class_docstr_tok: ["Wrapper","for","the","FI","bitmap","object","."]
code: def load_from_filename(self, filename=None):
      if filename is None:
          filename = self._filename
  
      with self._fi as lib:
          # Create bitmap
          bitmap = lib.FreeImage_Load(
              self._ftype, efn(filename), self._flags
          )
          bitmap = ctypes.c_void_p(bitmap)
  
          # Check and store
          if not bitmap:  # pragma: no cover
              raise ValueError(
                  'Could not load bitmap "%s": %s'
                  % (self._filename, self._fi._get_error_message())
              )
          self._set_bitmap(bitmap, (lib.FreeImage_Unload, bitmap))
  
imports: import os
  import sys
  import ctypes
  import threading
  import logging
  import numpy
  from ..core import get_remote_file, load_lib, Dict, resource_dirs, IS_PYPY, get_platform, InternetNotAllowedError, NeedDownloadError
label_desc: Use image node_id 2 for calling the FIBitmap obj's underlying member method code with example usage: obj.load_from_filename(filename) without return types