CIImageMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
CIImageMBS class
The class for a CoreImage Image object.
Example
// take a picture and scale it Dim pic As Picture = LogoMBS (500 )Dim image As CIImageMBS = CIImageMBS.imageWithPicture(pic)Dim filter As New CIFilterLanczosScaleTransformMBS Const targetWidth = 600.0 Const targetHeight = 400.0 Dim scale As Double = targetHeight / image.Extent.HeightDim aspect As Double = targetWidth / (image.Extent.Width * scale) filter.inputImage = image filter.inputScale = scale filter.inputAspectRatio = aspectDim result As Picture = filter.outputImage.RenderPicture Backdrop = result
9 properties
29 methods
method AsNSImageMBS as Variant
method autoAdjustmentFilters as CIFilterMBS ()
method autoAdjustmentFiltersWithOptions (options as dictionary) as CIFilterMBS ()
method Constructor (cgimage as CGImageMBS , cgcolorspace as CGColorSpaceMBS )
method Constructor (cgimage as CGImageMBS , options as Dictionary = nil)
method Constructor (CGLayer as CGLayerMBS , options as Dictionary = nil)
method Constructor (data as memoryblock)
method Constructor (data as memoryblock, BytesPerRow as Integer, width as Integer, height as Integer, format as Integer, cgcolorspace as CGColorSpaceMBS )
method Constructor (data as memoryblock, cgcolorspace as CGColorSpaceMBS )
method Constructor (data as Memoryblock, Length as Integer, BytesPerRow as Integer, width as Integer, height as Integer, format as Integer, cgcolorspace as CGColorSpaceMBS )
method Constructor (file as FolderItem)
method Constructor (file as FolderItem, cgcolorspace as CGColorSpaceMBS )
method Constructor (Handle as Integer)
method copy as CIImageMBS
method CreateCGImage (r as CGRectMBS = nil) as CGImageMBS
method CreateCGImage (r as CGRectMBS , ColorSpace as CGColorSpaceMBS ) as CGImageMBS
method imageByApplyingOrientation (orientation as Integer) as CIImageMBS
method ImageByApplyingTransform (transform as NSAffineTransformMBS ) as CIImageMBS
method imageByClampingToExtent as CIImageMBS
method imageByCompositingOverImage (dest as CIImageMBS) as CIImageMBS
method imageByCroppingToRect (r as CGRectMBS ) as CIImageMBS
method properties as Dictionary
method releaseHandle
method RenderNSImage (UseSoftwareRenderer as boolean = false) as Variant
method RenderPicture (Width as Integer = 0, Height as Integer = 0, UseSoftwareRenderer as boolean = false) as Picture
method RenderPictureWithAlpha (Width as Integer = 0, Height as Integer = 0, UseSoftwareRenderer as boolean = false) as Picture
method RenderPictureWithAlphaMT (Width as Integer = 0, Height as Integer = 0, UseSoftwareRenderer as boolean = false) as Picture
method retainHandle
method scaleTo (width as Integer, height as Integer) as CIImageMBS
22 shared methods
3 constants
Constants
Constant
Value
Description
kCIFormatARGB8
23
One of the pixel formats: 32bpp, fixed point.
kCIFormatRGBA16
27
One of the pixel formats: 64bpp, fixed point.
kCIFormatRGBAf
34
One of the pixel formats: 128bpp, floating point.
This class has no sub classes.
Some useful global functions for this class:
NewCIImagewithBitmapDataMBS (data as memoryblock, BytesPerRow as Integer, Width as Integer, Height as Integer, Format as Integer, colorspace as CGColorSpaceMBS ) as CIImageMBS
NewCIImagewithBitmapMemoryMBS (data as memoryblock, DataLength as Integer, BytesPerRow as Integer, Width as Integer, Height as Integer, Format as Integer, colorspace as CGColorSpaceMBS ) as CIImageMBS
NewCIImagewithCGImageMBS (cgimage as CGImageMBS , cgcolorspace as CGColorSpaceMBS ) as CIImageMBS
NewCIImagewithDataMBS (Data as memoryblock, cgcolorspace as CGColorSpaceMBS ) as CIImageMBS
NewCIImagewithDataMBS (Data as Memoryblock, Options as Dictionary = nil) as CIImageMBS
NewCIImagewithFileMBS (file as folderitem, cgcolorspace as CGColorSpaceMBS ) as CIImageMBS
NewCIImagewithURLMBS (url as String) as CIImageMBS
NewCIImagewithURLMBS (url as String, cgcolorspace as CGColorSpaceMBS ) as CIImageMBS
NewCISamplerMBS (ciImage as CIImageMBS) as CISamplerMBS
NewCISamplerMBS (ciImage as CIImageMBS, matrix as NSAffineTransformMBS , WrapMode as String, FilterMode as string) as CISamplerMBS
Some methods using this class:
CIContextMBS.CreateCGImage (image as CIImageMBS, r as CGRectMBS = nil) as CGImageMBS
CIContextMBS.CreateCGImage (image as CIImageMBS, r as CGRectMBS , ColorSpace as CGColorSpaceMBS ) as CGImageMBS
CIContextMBS.DrawImageRect (ciImage as CIImageMBS, DestRect as CGRectMBS , SourceRect as CGRectMBS = nil)
CIContextMBS.HEIFRepresentationOfImage (Image as CIImageMBS, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil) as MemoryBlock
CIContextMBS.writeJPEGRepresentationOfImage (Image as CIImageMBS, file as FolderItem, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS ) as Boolean
CIContextMBS.writePNGRepresentationOfImage (Image as CIImageMBS, file as FolderItem, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS ) as Boolean
CISamplerMBS.Constructor (ciImage as CIImageMBS)
CISamplerMBS.Constructor (ciImage as CIImageMBS, matrix as NSAffineTransformMBS , WrapMode as String, FilterMode as string)
CISamplerMBS.samplerWithImage (ciImage as CIImageMBS) as CISamplerMBS
CISamplerMBS.samplerWithImage (ciImage as CIImageMBS, Options as Dictionary) as CISamplerMBS
Some properties using for this class:
Some examples using this class:
Blog Entries
Xojo Developer Magazine
Release notes
Version 22.5
Version 21.2
The items on this page are in the following plugins: MBS MacCI Plugin .
CIFilterZoomBlurMBS
-
CIPDF417CodeDescriptorMBS