![]() Keep all the things straightforward by following the brief step-by-step tutorial: They, along with the Export to Xojo Bot boost performance, accelerate turnaround, decrease human issues, boost high quality and compliance, save fees and free up time for employees to give attention to creative, more useful responsibilities.Realbasic tutorial. The items on this page are in the following plugins: MBS Images Plugin.AirSlate is a powerful workflow automation program that optimizes business processes by utilizing configurable microprograms, named automation Bots. TransferFilter(dest as PictureMBS, red() as Integer, green() as Integer, blue() as Integer, alpha() as Integer) as PictureMBS.TransferFilter(dest as PictureMBS, red() as Integer, green() as Integer, blue() as Integer) as PictureMBS. ![]() TransferFilter(dest as PictureMBS, gray() as Integer, alpha() as Integer) as PictureMBS.The array for gray must have 256 entries starting with index 0.įor RGB pictures the gray array is used for all three channels. If dest is not nil, it must match the size of the original picture. On success dest or the new picture is returned. If dest is nil, the picture factory is used to create a new picture. /Images/LargePicture/Multithreaded Scaleĭim d as PictureMBS = p.TransferFilter( nil,gray).If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window. If called in main thread will block, but keep other background threads running. Must be called in a Xojo thread to enjoy benefits. The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. If one of the pictures used has IsMapping = true, the plugin calls Scale() function. Threads parameter specifies how many threads you want to use:Ī negative value disables threading, zero will use one thread for each CPU core and a positive number specifies the thread count. Same as Scale, but with additional multithreading. The multithreaded variant of Scale function. ScaleMT(threads as Integer, source as PictureMBS, temp as PictureMBS, mode as Integer, width as Integer, height as Integer) as boolean If an alpha channel exists in both images, it is copied. Gray to RGB fill red, green and blue with the same gray value. This function is optimized for several image formats: Returns true on success and false on any error. Temp picture may not be mapped.įor scaling with the same size as the picture already has, the scaling is still performed. Use ImageFormatScaling when you create the temp image to give it the correct size. The size of the temporary picture must have the size of the destination width and the source height. On low memory this function can fail or the image may look bad. The final image is stored in the PictureMBS object you call this method on. Scale(source as PictureMBS, temp as PictureMBS, mode as Integer, width as Integer, height as Integer) as boolean /Images/LargePicture/PictureMBS rotate benchmark./Images/LargePicture/PictureMBS filters./Images/LargePicture/PictureMBS display huge picture./Images/LargePicture/PictureMBS boxblur benchmark./Images/LargePicture/CMYK/PictureMBS with CMYK.RowInFormat(index as Integer, ImageFormat as Integer, InvertAlpha as boolean) as memoryblock.May raise OutOfBoundsException for invalid index. If you query the row, you will get a copy of the row bytes in a new memoryblock. PixelSize is the format dependend size in bytes for one pixel. If you set the row, use a memoryblock with at least Width*PixelSize bytes. You can get and set a row with this method in the given format. P.RowInFormat( 10, p.ImageFormatRofRGB)=m Dim p as new PictureMBS( 100, 100, PictureMBS.ImageFormatRGB)ĭim m as MemoryBlock = p.RowInFormat( 10, p.ImageFormatRofRGB)
0 Comments
Leave a Reply. |