MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
MemoryblockABGRtoPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
MemoryblockARGBtoPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
MemoryblockBGRAtoPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
MemoryblockBGRtoPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*3 bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*3 bytes in the memoryblock.
Does not access the mask inside the image!
MemoryblockGrayToPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer, PixelByteSize as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Example:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Example:
const kAlphaOffset=0 ' (BigEndian) and 3 (LittleEndian)
dim m as MemoryBlock
dim p,q,k as Picture
p=NewPicture(100,100,32)
p.Graphics.ForeColor=rgb(255,128,1)
p.Graphics.FillRect 0,0,100,100
p.mask.Graphics.ForeColor=rgb(127,127,127)
p.mask.Graphics.FillRect 0,0,100,100
// Make a new MemoryBlock
m=NewMemoryBlock(100*100*4) // 4 bytes per Pixel
// copy RGB and leave room for alpha
if p.CopyARGBtoMemoryblockMBS(m,0,false,-1) then
'MsgBox EncodingToHexMBS(m.StringValue(0,99))
end if
// copy green channel from mask image into Memoryblock
if p.mask.CopyGtoMemoryblockMBS(m,kAlphaOffset,4) then
'MsgBox EncodingToHexMBS(m.StringValue(0,99))
end if
// make the picture from this Memoryblock
q=MemoryblockARGBtoPictureMBS(m,0,100,100,false)
// make the mask from this Memoryblock
k=MemoryblockGrayToPictureMBS(m,kAlphaOffset,100,100,4)
// combine picture and mask
q.Mask.Graphics.DrawPicture k,0,0
Backdrop=q
Notes: Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
Some examples using this method:
MemoryblockGrayToPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer, PixelByteSize as integer, Red as integer, Blue as integer, Green as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
This variantion of this method Multiplies the gray value with Red, Blue and Green and divided by 256.
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
This variantion of this method Multiplies the gray value with Red, Blue and Green and divided by 256.
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
Some examples using this method:
MemoryblockGrayToPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer, PixelByteSize as integer, Red() as integer, Blue() as integer, Green() as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
This variantion of this method lookups the Red, Green and Blue values for the next pixel by using the gray value as index.
The arrays should have 256 elements.
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
This variantion of this method lookups the Red, Green and Blue values for the next pixel by using the gray value as index.
The arrays should have 256 elements.
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*PixelByteSize bytes in the memoryblock.
Does not access the mask inside the image!
Some examples using this method:
MemoryblockRGBAtoPictureMBS(source as memoryblock, offset as integer, width as integer, height as integer) as picture
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
global method, Graphics & Pictures, MBS Picture Plugin (PictureMemory), Plugin version: 8.5, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Copies image data from a memoryblock into a picture object.
Notes:
Returns nil on any error.
source should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs width*height*4 bytes in the memoryblock.
Does not access the mask inside the image!
The items on this page are in the following plugins: MBS Picture Plugin.
Monkeybread Software Realbasic Plugins - Messdiener Nickenich