Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Picture.ChangeBrightnessAbsoluteMBS(Brightness as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the bightness of an image.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeBrightnessAbsoluteMBS(30)

// show in window
window1.Backdrop = n
Notes:
To every pixel component the value is added.
Returns nil if the picture is no bitmap picture.

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeBrightnessAbsoluteMBS(BrightnessRed as Double, BrightnessGreen as Double, BrightnessBlue as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the bightness of an image.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeBrightnessAbsoluteMBS(10,20,30)

// show in window
window1.Backdrop = n
Notes:
To every pixel component the value is added.
Returns nil if the picture is no bitmap picture.

PS: This function may be optimized, if someone needs it to be faster.

Basicly Picture.ChangeBrightnessAbsoluteMBS does this:

for each pixel in picture
pixel.red = pixel.red + r
pixel.green = pixel.green + g
pixel.blue = pixel.blue + b
next

and it limits the pixel values to the range 0 to 255.

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeBrightnessLinearMBS(Brightness as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the bightness of an image linear.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeBrightnessLinearMBS(30)

// show in window
window1.Backdrop = n
Notes:
Value is fraction of change. Range -255 to 255. For example 127 would move all colors half the way to white.
Returns nil if the picture is no bitmap picture.

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeBrightnessLinearMBS(BrightnessRed as Double, BrightnessGreen as Double, BrightnessBlue as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the bightness of an image linear.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeBrightnessLinearMBS(10,20,30)

// show in window
window1.Backdrop = n
Notes:
Returns nil if the picture is no bitmap picture.
PS: This function may be optimized, if someone needs it to be faster (e.g. using Altivec).

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeContrastBrightnessAbsoluteMBS(Contrast as Double, Brightness as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 11.1 Yes Yes Yes Yes No
Function: Changes the bightness and contrast of an image.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastBrightnessAbsoluteMBS(0.5,30)

// show in window
window1.Backdrop = n
Notes: Returns nil if the picture is no bitmap picture.

See also:

Feedback, Comments & Corrections

Picture.ChangeContrastBrightnessAbsoluteMBS(ContrastRed as Double, ContrastGreen as Double, ContrastBlue as Double, BrightnessRed as Double, BrightnessGreen as Double, BrightnessBlue as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 11.1 Yes Yes Yes Yes No
Function: Changes the bightness and contrast of an image.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastBrightnessAbsoluteMBS(0.5, 0.5, 0.5, 10, 20, 30)

// show in window
window1.Backdrop = n
Notes: Returns nil if the picture is no bitmap picture.

See also:

Feedback, Comments & Corrections

Picture.ChangeContrastBrightnessLinearMBS(Contrast as Double, Brightness as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 11.1 Yes Yes Yes Yes No
Function: Changes the bightness and contrast of an image linear.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastBrightnessLinearMBS(0.5,30)

// show in window
window1.Backdrop = n
Notes:
Returns nil if the picture is no bitmap picture.
Contrast range is 0 to 1.0.
Brightness range is -255 to 255.

See also:

Feedback, Comments & Corrections

Picture.ChangeContrastBrightnessLinearMBS(ContrastRed as Double, ContrastGreen as Double, ContrastBlue as Double, BrightnessRed as Double, BrightnessGreen as Double, BrightnessBlue as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 11.1 Yes Yes Yes Yes No
Function: Changes the bightness and contrast of an image linear.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastBrightnessLinearMBS(0.5, 0.5, 0.5, 10, 20, 30)

// show in window
window1.Backdrop = n
Notes:
Returns nil if the picture is no bitmap picture.
Contrast range is 0 to 1.0.
Brightness range is -255 to 255.

See also:

Feedback, Comments & Corrections

Picture.ChangeContrastMBS(Contrast as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the contrast of the picture.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastMBS(-0.5)

// show in window
window1.Backdrop = n
Notes:
All three color channels are handled with the same contrast change.
Returns a picture on success or nil on any error.
Parameters can have any value.
(values >=0.0 will add contrast, values below 0.0 will reduce contrast till gray picture at -1.0, values below -1.0 will add contrast again and also invert the picture)

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeContrastMBS(ContrastRed as Double, ContrastGreen as Double, ContrastBlue as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the contrast of the picture.
Example:
// get test picture
dim p as Picture = LogoMBS(500)

dim n as Picture = p.ChangeContrastMBS(-0.5,0.0,0.5)

// show in window
window1.Backdrop = n
Notes:
Three different values, one for each channel.
Returns a picture on success or nil on any error.
(values >=0.0 will add contrast, values below 0.0 will reduce contrast till gray picture at -1.0, values below -1.0 will add contrast again and also invert the picture)

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeCustomMBS(a as Double, b as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 4.3 Yes Yes Yes Yes No
Function: Changes the picture with custom values.
Notes:
Uses this formular:
NewPixelComponent=OldPixelComponent*a+b

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeCustomMBS(Ra as Double, Rb as Double, Ga as Double, Gb as Double, Ba as Double, Bb as Double) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 14.2 Yes Yes Yes Yes No
Function: Changes the picture with custom values.
Notes:
Uses this formular:
NewPixelComponent=OldPixelComponent*a+b

See also:

Some examples which use this method:

Feedback, Comments & Corrections

Picture.ChangeSaturationMBS(Amount as Integer) as picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Graphics & Pictures MBS Picture Plugin 9.4 Yes Yes Yes Yes No
Function: Returns a copy of the picture with a changed saturation.
Notes:
Range of amount is from -255 to 255.

Value 0 does nothing.
Value -255 returns a gray level picture.

Feedback, Comments & Corrections

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




Links
MBS FileMaker Plugins