Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

PictureMBS.TransferFilter(dest as PictureMBS, gray() as Integer, alpha() as Integer) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
Function: Transfers a picture to another picture by looking up each pixel value in the given arrays.
Notes:
if dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

The arrays for gray and alpha must have 256 entries starting with index 0.
For RGB pictures the gray array is used for all three channels.
If the picture has no alpha channel, the alpha parameter is ignored.

Returns nil on any error.

See also:

Feedback, Comments & Corrections

PictureMBS.TransferFilter(dest as PictureMBS, red() as Integer, green() as Integer, blue() as Integer) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
Function: Transfers a picture to another picture by looking up each pixel value in the given arrays.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)

dim red(256) as Integer
dim green(256) as Integer
dim blue(256) as Integer

for i as Integer = 0 to 255
red(i)=i
green(i)=i
blue(i)=255-i // invert blue
next

dim d as PictureMBS = p.TransferFilter(nil,red,green,blue)

Backdrop = d.CopyPicture
Notes:
if dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

The arrays for red, green and blue must have 256 entries starting with index 0.
For grayscale pictures the green array is used for the gray channel.

Returns nil on any error.

See also:

Feedback, Comments & Corrections

PictureMBS.TransferFilter(dest as PictureMBS, red() as Integer, green() as Integer, blue() as Integer, alpha() as Integer) as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
Function: Transfers a picture to another picture by looking up each pixel value in the given arrays.
Notes:
if dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

The arrays for red, green, blue and alpha must have 256 entries starting with index 0.
For grayscale pictures the green array is used for the gray channel.
If the picture has no alpha channel, the alpha parameter is ignored.

Returns nil on any error.

See also:

Feedback, Comments & Corrections

PictureMBS.Unmultiply
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Un-multiplies alpha channel for whole picture.
Notes: Pictures with alpha channel must be multiplied, while pictures with mask have the alpha unmultiplied and inverse in the mask.

See also:

Feedback, Comments & Corrections

PictureMBS.Unmultiply(x as integer, y as integer, width as integer, height as integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 18.0 Yes Yes Yes Yes No
Function: Un-multiplies alpha channel for given rectangle in picture.
Notes: Pictures with alpha channel must be multiplied, while pictures with mask have the alpha unmultiplied and inverse in the mask.

See also:

Feedback, Comments & Corrections

PictureMBS.UnsharpFilter(origpixels as PictureMBS, Amount as Double, Threshold as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 9.3 Yes Yes Yes Yes No
Function: Runs the unsharp filter.
Notes:
You may want to run the BoxBlur filter first before using the unsharp filter.

if dest is nil, the picture factory is used to create a new picture.
On success dest or the new picture is returned.
If dest is not nil, it must match the size of the original picture.

Returns nil on any error.

Works with Gray, RGB and CMYK pictures and supports alpha channel.

Feedback, Comments & Corrections

PictureMBS.VMirror
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Mirrors the image content vertically.
Example:
// get some picture
dim l as Picture = LogoMBS(500)
// create new image
dim p as new PictureMBS(l)
// mirror
p.VMirror
// show in window
window1.Backdrop = p.CopyPicture
Notes: Works with Gray, RGB and CMYK pictures and supports alpha channel.

Feedback, Comments & Corrections

PictureMBS.YellowChannel as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Large Picture MBS Images Plugin 11.0 Yes Yes Yes Yes No
Function: The yellow channel of a CMYK picture as a new PictureMBS object.
Notes:
Returns nil if this channel does not exist.
No copy is made of the actual pixel data. Modifying the channel picture will modify the original picture.
Use this function to access the pixels of the channel directly.
The resulting PictureMBS object is a grayscale picture.

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Plugins