Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

PtrABGRtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrABGRtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrARGBtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrARGBtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrARGBtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer, LittleEndian as boolean) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

LittleEndian specifies whether the image is stored in ARGB (BigEndian) or BGRA (LittleEndian) mode.

See also:

Feedback, Comments & Corrections

PtrBGRAtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrBGRAtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrBGRtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*3 bytes in the memory pointed to by pointer plus offset.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrBGRtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*3 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrGrayToPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer, PixelByteSize as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*PixelByteSize bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrGrayToPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer, PixelByteSize as Integer, Red as Integer, Blue as Integer, Green as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*PixelByteSize bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrGrayToPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer, PixelByteSize as Integer, Red() as Integer, Blue() as Integer, Green() as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*PixelByteSize bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrRGBAtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer, FlipVertically as boolean=false) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

If FlipVertically is true the image is flipped. New in version 9.4.

Does not access the mask inside the image!

See also:

Feedback, Comments & Corrections

PtrRGBAtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer, FlipVertically as boolean=false) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*4 bytes in the memory pointed to by pointer plus offset.

If FlipVertically is true the image is flipped. New in version 9.4.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrRGBtoPictureMBS(dest as picture, source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

In the dest picture parameter you can provide a picture to draw in. If the picture is no big enough or nil, a new one is created.

The function will crash if the data is too small where the pointer points to. Needs width*height*3 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

PtrRGBtoPictureMBS(source as Ptr, offset as Integer, width as Integer, height as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Graphics & Pictures MBS Picture Plugin 12.2 Yes Yes Yes Yes No
Function: Copies image data from a pointer 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 data the pointer points to.

The function will crash if the data is too small where the pointer points to. Needs width*height*3 bytes in the memory pointed to by pointer plus offset.

Does not access the mask inside the image!
Data is copied from memory block to the new picture, not referenced.

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Picture Plugin.




Links
MBS Xojo Plugins