MaxPlus Python API Reference
Bitmap Class Reference
+ Inheritance diagram for Bitmap:

Public Member Functions

def ChannelsPresent (self)
 
def ClampColor (*args)
 
def ClampColorA (*args)
 
def ClampScaleColor (self, *args)
 
def ClampScaleColorA (self, *args)
 
def ClearFlag (self, *args)
 
def Close (self, *args)
 
def CloseAll (self, *args)
 
def CopyImage (self, *args)
 
def CreateChannels (self, *args)
 
def CropImage (self, *args)
 
def DeleteChannels (self, *args)
 
def DeleteStorage (self)
 
def DeleteThis (self)
 
def Display (self, *args)
 
def Fill (self, *args)
 
def FromDib (self, *args)
 
def GetAspect (self)
 
def GetFlags (self)
 
def GetGamma (self)
 
def GetHasFilter (self)
 
def GetHeight (self)
 
def GetMaxAlphaLevel (self)
 
def GetMaxRGBLevel (self)
 
def GetModifyID (self)
 
def GetScaleColors (self)
 
def GetStorage (self)
 
def GetWidth (self)
 
def GetWindow (self)
 
def GoTo (self, *args)
 
def HasAlpha (self)
 
def HasPreMultipliedAlpha (self)
 
def IncrModifyID (self)
 
def IsDithered (self)
 
def IsHighDynamicRange (self)
 
def IsPaletted (self)
 
def OpenOutput (self, *args)
 
def Print (self, silent=False)
 
def ScaleColor (*args)
 
def ScaleColorA (*args)
 
def SetCroppingValues (self, *args)
 
def SetDither (self, *args)
 
def SetFilter (self, *args)
 
def SetFlag (self, *args)
 
def SetModifyID (self, *args)
 
def SetScaleColors (self, *args)
 
def SetStorage (self, *args)
 
def ShowProgressLine (self, *args)
 
def ToDib (self, depth=24, gam=None, dither=True, displayGamma=True)
 
def ToggleFlag (self, *args)
 
def UnDisplay (self)
 
def Write (self, *args)
 
def WriteAll (self, *args)
 
- Public Member Functions inherited from BaseInterfaceServer
def GetInterfaceAt (self, *args)
 
def GetNumInterfaces (self)
 
- Public Member Functions inherited from InterfaceServer
def GetInterface (self, *args)
 
- Public Member Functions inherited from Wrapper
def GetUnwrappedPtr (self)
 

Static Public Attributes

 ClampColor = staticmethod(ClampColor)
 
 ClampColorA = staticmethod(ClampColorA)
 
 ScaleColor = staticmethod(ScaleColor)
 
 ScaleColorA = staticmethod(ScaleColorA)
 
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
- Static Public Attributes inherited from BaseInterfaceServer
 Interfaces = _swig_property(lambda self: (self.GetInterfaceAt(i) for i in xrange(self.GetNumInterfaces())))
 
 NumInterfaces = _swig_property(GetNumInterfaces)
 
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
- Static Public Attributes inherited from InterfaceServer
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
- Static Public Attributes inherited from Wrapper
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 

Detailed Description

The main class for working with bitmaps.

Member Function Documentation

◆ ChannelsPresent()

def ChannelsPresent (   self)
ChannelsPresent(Bitmap self) -> ULONG

◆ ClampColor()

def ClampColor ( args)
ClampColor(Color64 outValue, HDRColor inValue)

◆ ClampColorA()

def ClampColorA ( args)
ClampColorA(Color64 outValue, HDRColor inValue)

◆ ClampScaleColor()

def ClampScaleColor (   self,
args 
)
ClampScaleColor(Bitmap self, Color64 outValue, HDRColor inValue)

◆ ClampScaleColorA()

def ClampScaleColorA (   self,
args 
)
ClampScaleColorA(Bitmap self, Color64 outValue, HDRColor inValue)

◆ ClearFlag()

def ClearFlag (   self,
args 
)
ClearFlag(Bitmap self, DWORD flag)

◆ Close()

def Close (   self,
args 
)
Close(Bitmap self, BitmapInfo bi, int flag=BMM_CLOSE_COMPLETE) -> bool
Close(Bitmap self, BitmapInfo bi) -> bool

◆ CloseAll()

def CloseAll (   self,
args 
)
CloseAll(Bitmap self, int flag=BMM_CLOSE_COMPLETE) -> bool
CloseAll(Bitmap self) -> bool

◆ CopyImage()

def CopyImage (   self,
args 
)
CopyImage(Bitmap self, Bitmap other, int operation, Color64 fillcolor) -> bool
CopyImage(Bitmap self, Bitmap other, int operation, HDRColor fillcolor) -> bool
CopyImage(Bitmap self, Bitmap other, int operation, int fillindex) -> bool

◆ CreateChannels()

def CreateChannels (   self,
args 
)
CreateChannels(Bitmap self, ULONG channelIDs) -> ULONG

◆ CropImage()

def CropImage (   self,
args 
)
CropImage(Bitmap self, int width, int height, Color64 fillcolor) -> bool
CropImage(Bitmap self, int width, int height, HDRColor fillcolor) -> bool
CropImage(Bitmap self, int width, int height, int fillindex) -> bool

◆ DeleteChannels()

def DeleteChannels (   self,
args 
)
DeleteChannels(Bitmap self, ULONG channelIDs)

◆ DeleteStorage()

def DeleteStorage (   self)
DeleteStorage(Bitmap self)

◆ DeleteThis()

def DeleteThis (   self)
DeleteThis(Bitmap self)

◆ Display()

def Display (   self,
args 
)
Display(Bitmap self, wchar_t const * title=None, int position=BMM_CN, bool autonomous=False, bool savebutton=True) -> bool
Display(Bitmap self, wchar_t const * title=None, int position=BMM_CN, bool autonomous=False) -> bool
Display(Bitmap self, wchar_t const * title=None, int position=BMM_CN) -> bool
Display(Bitmap self, wchar_t const * title=None) -> bool
Display(Bitmap self) -> bool

◆ Fill()

def Fill (   self,
args 
)
Fill(Bitmap self, int r, int g, int b, int alpha) -> bool
Fill(Bitmap self, HDRColor fillColor) -> bool
Fill(Bitmap self, Color64 fillColor) -> bool

◆ FromDib()

def FromDib (   self,
args 
)
FromDib(Bitmap self, PBITMAPINFO pbmi) -> bool

◆ GetAspect()

def GetAspect (   self)
GetAspect(Bitmap self) -> float

◆ GetFlags()

def GetFlags (   self)
GetFlags(Bitmap self) -> DWORD

◆ GetGamma()

def GetGamma (   self)
GetGamma(Bitmap self) -> float

◆ GetHasFilter()

def GetHasFilter (   self)
GetHasFilter(Bitmap self) -> bool

◆ GetHeight()

def GetHeight (   self)
GetHeight(Bitmap self) -> int

◆ GetMaxAlphaLevel()

def GetMaxAlphaLevel (   self)
GetMaxAlphaLevel(Bitmap self) -> int

◆ GetMaxRGBLevel()

def GetMaxRGBLevel (   self)
GetMaxRGBLevel(Bitmap self) -> int

◆ GetModifyID()

def GetModifyID (   self)
GetModifyID(Bitmap self) -> DWORD

◆ GetScaleColors()

def GetScaleColors (   self)
GetScaleColors(Bitmap self) -> bool

◆ GetStorage()

def GetStorage (   self)
GetStorage(Bitmap self) -> BitmapStorage

◆ GetWidth()

def GetWidth (   self)
GetWidth(Bitmap self) -> int

◆ GetWindow()

def GetWindow (   self)
GetWindow(Bitmap self) -> HWND

◆ GoTo()

def GoTo (   self,
args 
)
GoTo(Bitmap self, BitmapInfo bi) -> BMMRES

◆ HasAlpha()

def HasAlpha (   self)
HasAlpha(Bitmap self) -> int

◆ HasPreMultipliedAlpha()

def HasPreMultipliedAlpha (   self)
HasPreMultipliedAlpha(Bitmap self) -> int

◆ IncrModifyID()

def IncrModifyID (   self)
IncrModifyID(Bitmap self)

◆ IsDithered()

def IsDithered (   self)
IsDithered(Bitmap self) -> int

◆ IsHighDynamicRange()

def IsHighDynamicRange (   self)
IsHighDynamicRange(Bitmap self) -> int

◆ IsPaletted()

def IsPaletted (   self)
IsPaletted(Bitmap self) -> int

◆ OpenOutput()

def OpenOutput (   self,
args 
)
OpenOutput(Bitmap self, BitmapInfo bi) -> BMMRES

◆ Print()

def Print (   self,
  silent = False 
)
Print(Bitmap self, bool silent=False)
Print(Bitmap self)

◆ ScaleColor()

def ScaleColor ( args)
ScaleColor(Color64 outValue, HDRColor inValue)

◆ ScaleColorA()

def ScaleColorA ( args)
ScaleColorA(Color64 outValue, HDRColor inValue)

◆ SetCroppingValues()

def SetCroppingValues (   self,
args 
)
SetCroppingValues(Bitmap self, float u, float v, float w, float h, bool placeImage)

◆ SetDither()

def SetDither (   self,
args 
)
SetDither(Bitmap self, UINT ditherType) -> bool

◆ SetFilter()

def SetFilter (   self,
args 
)
SetFilter(Bitmap self, UINT filterType) -> bool

◆ SetFlag()

def SetFlag (   self,
args 
)
SetFlag(Bitmap self, DWORD flag)

◆ SetModifyID()

def SetModifyID (   self,
args 
)
SetModifyID(Bitmap self, DWORD m)

◆ SetScaleColors()

def SetScaleColors (   self,
args 
)
SetScaleColors(Bitmap self, bool on)

◆ SetStorage()

def SetStorage (   self,
args 
)
SetStorage(Bitmap self, BitmapStorage storage) -> bool

◆ ShowProgressLine()

def ShowProgressLine (   self,
args 
)
ShowProgressLine(Bitmap self, int y)

◆ ToDib()

def ToDib (   self,
  depth = 24,
  gam = None,
  dither = True,
  displayGamma = True 
)
ToDib(Bitmap self, int depth=24, UWORD * gam=None, bool dither=True, bool displayGamma=True) -> PBITMAPINFO
ToDib(Bitmap self, int depth=24, UWORD * gam=None, bool dither=True) -> PBITMAPINFO
ToDib(Bitmap self, int depth=24, UWORD * gam=None) -> PBITMAPINFO
ToDib(Bitmap self, int depth=24) -> PBITMAPINFO
ToDib(Bitmap self) -> PBITMAPINFO

◆ ToggleFlag()

def ToggleFlag (   self,
args 
)
ToggleFlag(Bitmap self, DWORD flag)

◆ UnDisplay()

def UnDisplay (   self)
UnDisplay(Bitmap self) -> bool

◆ Write()

def Write (   self,
args 
)
Write(Bitmap self, BitmapInfo bi, int frame=BMM_SINGLEFRAME) -> BMMRES
Write(Bitmap self, BitmapInfo bi) -> BMMRES

◆ WriteAll()

def WriteAll (   self,
args 
)
WriteAll(Bitmap self, int frame=BMM_SINGLEFRAME) -> BMMRES
WriteAll(Bitmap self) -> BMMRES