code: function asBitmap(v, throwException) {
      if (throwException === void 0) { throwException = true; }
      var result = BitmapFactory.asBitmapObject(v);
      if (throwException && (false === result)) {
          throw "No valid value for a bitmap!";
      }
      return result;
  }
docs: Returns a value as bitmap object.
  
  @param any v The input value.
  @param {Boolean} [throwException] Throw exception if 'v' is invalid or return (false).
  
  @throws Input value is invalid.
  
  @return {IBitmap} The output value or (false) if input value is invalid.