Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to scale/resize a CIImageMBS?

Answer: Use the CIFilterLanczosScaleTransform filter to scale down a picture to a specific size.
Example
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.Height
Dim aspect As Double = targetWidth / (image.Extent.Width * scale)

filter.inputImage = image
filter.inputScale = scale
filter.inputAspectRatio = aspect

Dim result As Picture = filter.outputImage.RenderPicture

Backdrop = result

This is same code as our scaleTo convenience method.


The biggest plugin in space...