Platforms to show: All Mac Windows Linux Cross-Platform

Back to IMImageQ32MBS class.

IMImageQ32MBS.SetImageAttribute(key as string, value as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
SetImageAttribute searches the list of image attributes and replaces the attribute value.

If it is not found in the list, the attribute name and value is added to the list. If the attribute exists in the list, the value is concatenated to the attribute. SetImageAttribute returns True if the attribute is successfully concatenated or added to the list, otherwise False. If the value is "", the matching key is deleted from the list.

IMImageQ32MBS.SetImageColorspace(Colorspace as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the colorspace member of the Image structure.

Returns false on any error and true on success.

IMImageQ32MBS.SetImageProfile(name as string, ProfileData as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a named profile to the image.

If a profile with the same name already exists, it is replaced. This method differs from the ProfileImage() method in that it does not apply CMS color profiles.

name: The profile name.
profiledata: The binary data of the profile.

Returns false on any error and true on success.

IMImageQ32MBS.SetPicture(pic as picture, x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the pixels from a given Xojo picture into the Image Magick Image at the given location.
Example
Var image as IMImageQ32MBS // your image
Var p as picture

p=New Picture(32,32,32)
p.Graphics.ForeColor=rgb(0,255,0)
p.Graphics.FillRect 0,0,32,32

image.SetPicture(p,30,30)

Sets the last exception property.
The method will do nothing on bad bounds.
This method works only for bitmap images.
x and y are zero based.

IMImageQ32MBS.SetPictureMask(maskpic as picture, x as Integer, y as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the pixels from a given Xojo picture into the mask of the Image Magick Image at the given location.
Example
Var i as IMImageQ32MBS // your image
Var p as picture

p=New Picture(32,32,32)
p.Graphics.ForeColor=rgb(0,255,0)
p.Graphics.FillRect 0,0,32,32

i.SetPictureMask(p,30,30)

Sets the last exception property.
The method will do nothing on bad bounds.
This method works only for bitmap images.
x and y are zero based.
You may need to set matte=True after this.

IMImageQ32MBS.SetPixel(x as Integer, y as Integer, newPixel as IMColorQ32MBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets a pixel value.
Example
Var image as IMImageQ32MBS // your image
Var co as IMColorQ32MBS

co=new IMColorQ32MBS
co.blue=65535 // max value
image.SetPixel 50,50,co // Makes Pixel 50/50 blue

The method will fail silently if the values are out of bounds or the image is not a bitmap image.
This method works only for bitmap images.
x and y are zero based.

IMImageQ32MBS.Shade(gray as boolean, azimuth as Double, elevation as Double) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Shines a distant light on an image to create a three-dimensional effect.

You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.
Sets the last exception property.

For more details please check the ImageMagick documentation.

IMImageQ32MBS.SharpenChannel(channel as Integer, radius as Double, sigma as Double) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sharpens one or more image channels.

We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma) . For reasonable results, radius should be larger than sigma. Use a radius of 0 and Sharpen selects a suitable radius for you.

channel: The channel type.
radius: The radius of the Gaussian, in pixels, not counting the center pixel.
sigma: The standard deviation of the Laplacian, in pixels.

Constants for channel:
const UndefinedChannel= 0
const RedChannel= &h0001
const GrayChannel= &h0001
const CyanChannel= &h0001
const GreenChannel= &h0002
const MagentaChannel= &h0002
const BlueChannel= &h0004
const YellowChannel= &h0004
const AlphaChannel= &h0008
const OpacityChannel= &h0008
const BlackChannel= &h0020
const IndexChannel= &h0020
const AllChannels= &h7fffffff

Sets the last exception property.
For more details please check the ImageMagick documentation.

IMImageQ32MBS.Shave(x as Integer, y as Integer, width as Integer, height as Integer) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Shave shaves pixels from the image edges.

It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
Returns nil on any error.
Sets the last exception property.

IMImageQ32MBS.Shear(Xshear as Double, Yshear as Double) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method ShearImage creates a new image that is a shear_image copy of an existing one.

Shearing slides one edge of an image along the X or Y axis, creating a parallelogram. An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis. The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles left over from shearing the image are filled with the color defined by the pixel at location (0,0). ShearImage allocates the memory necessary for the new Image structure and returns a pointer to the new image.

Xshear and YYshear specify the number of degrees to shear the image.

Sets the last exception property.
For more details please check the ImageMagick documentation.

IMImageQ32MBS.Solarize(factor as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method SolarizeImage produces a 'solarization' effect seen when exposing a photographic film to light during the development process.

factor: An double value that defines the extent of the solarization.
Returns nil on any error.
Sets the last exception property.

IMImageQ32MBS.Splice(x as Integer, y as Integer, width as Integer, height as Integer) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Splice splices a solid color into the image as defined by the geometry.

Returns nil on any error.
Sets the last exception property.

IMImageQ32MBS.Spread(radius as Double) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.

radius: Choose a random pixel in a neighborhood of this extent.
Sets the last exception property.

For more details please check the ImageMagick documentation.

IMImageQ32MBS.Stegano(watermarkImage as IMImageQ32MBS) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method SteganoImage hides a digital watermark within the image.

Returns nil on any error.
Sets the last exception property.

IMImageQ32MBS.Stereo(otherImage as IMImageQ32MBS) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method StereoImage combines two images and produces a single image that is the composite of a left and right image of a stereo pair.

The left image is converted to gray scale and written to the red channel of the stereo image. The right image is converted to gray scale and written to the blue channel of the stereo image. View the composite image with red-blue glasses to create a stereo effect.

left image = self
right image = otherImage parameter

Returns nil on any error.
Sets the last exception property.

IMImageQ32MBS.Swirl(degrees as Double) as IMImageQ32MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Magick MBS GraphicsMagick Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Method SwirlImage creates a new image that is a copy of an existing one with the image pixels "swirl" at a specified angle.

degrees: An double value that defines the tightness of the swirling.

Returns nil on any error.
Sets the last exception property.

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


The biggest plugin in space...