MBS Plugin Documentation
Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchie
New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0
The list of the themes, classes, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
CombineBitCMYKtoRGBMBS(CyanChannel() as integer, MagentaChannel() as integer, YellowChannel() as integer, BlackChannel() as integer, Files() as FolderItem, scale as double, width as integer, height as integer, X1 as integer, Y1 as integer, X2 as integer, Y2 as integer, byref output as picture, CacheSizeRead as integer) as integer
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Combines 1bit raw image files to one 8bit RGB tiff.
Example:
All arrays have the same size specifying for each 1bit grayscale source image the colors to be used in the final image.
Result image is written to the output picture which is created. Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Combines 1bit raw image files to one 8bit RGB tiff.
Example:
dim t(4) as FolderItem
dim dC(4), dM(4), dY(4), dK(4) As Double
dim nC(4), nM(4), nY(4), nK(4) as integer
dim i as integer
dim p as Picture
//Cyan
dK(0)=0.0
dC(0)=1.0
dM(0)=0.0
dY(0)=0.0
//Magenta
dK(1)=0.00
dC(1)=0.0
dM(1)=1.0
dY(1)=0.0
//Yellow
dK(2)=0.00
dC(2)=0.0
dM(2)=0.0
dY(2)=1.0
//Black
dK(3)=1.00
dC(3)=0.0
dM(3)=0.0
dY(3)=0.0
//Pantone, Sonderfarbe, S0
dK(4)=0.00
dC(4)=0.60
dM(4)=0.35
dY(4)=0.15
//Bilder
t(0)=GetFolderItem("test.Cyan.bit")
t(1)=GetFolderItem("test.Magenta.bit")
t(2)=GetFolderItem("test.Yellow.bit")
t(3)=GetFolderItem("test.Black.bit")
t(4)=GetFolderItem("test.S0.bit")
for i=0 to 4
nC(i)=dC(i)*1000.0
nM(i)=dM(i)*1000.0
nY(i)=dY(i)*1000.0
nK(i)=dK(i)*1000.0
next
// Scale 1/n, 1/3, 1/2, 1, 2, 3, n
Title=str(CombineBitCMYKtoRGB(nC,nM,nY,nK, t, 1, 545,567,0,0,545,567,p,0))
Backdrop=p
Width=p.Width
Height=p.Height
Notes: All arrays have the same size specifying for each 1bit grayscale source image the colors to be used in the final image.
Result image is written to the output picture which is created. Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
Split1BitFileMBS(f as folderitem, fc as folderitem, fm as folderitem, fy as folderitem, fk as folderitem, width as integer, height as integer, CallbackTarget as object, CacheSizeRead as integer, CacheSizeWrite as integer) as integer
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Splits a one bit CMYK file into different files.
Notes:
Source file has 1 bit for each channel.
Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
CallbackTarget can be nil or must be an object with a method with the following declaration: "Progress(RowIndex as integer, RowCount as integer)"
Errorcodes:
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.1, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Splits a one bit CMYK file into different files.
Notes:
Source file has 1 bit for each channel.
Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
CallbackTarget can be nil or must be an object with a method with the following declaration: "Progress(RowIndex as integer, RowCount as integer)"
Errorcodes:
| 1 | not used |
| 2 | Failed to open f |
| 3 | Failed to open fc |
| 4 | Failed to open fm |
| 5 | Failed to open fy |
| 6 | Failed to open fk |
| 7 | Width<1 |
| 8 | Height<1 |
| 9 | Allocating read buffer failed |
| 10 | Allocating write buffer failed for c |
| 11 | Allocating write buffer failed for m |
| 12 | Allocating write buffer failed for y |
| 13 | Allocating write buffer failed for k |
| 14 | Read failed |
| 15 | Write failed for c |
| 16 | Write failed for m |
| 17 | Write failed for y |
| 18 | Write failed for k |
Split1BitFileMBS(f as folderitem, fc as folderitem, fm as folderitem, fy as folderitem, fk as folderitem, width as integer, height as integer, CallbackTarget as object, CacheSizeRead as integer, CacheSizeWrite as integer, ReadLines as integer, WriteLines as integer) as integer
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Splits a one bit CMYK file into different files.
Notes:
Source file has 1 bit for each channel.
Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
CallbackTarget can be nil or must be an object with a method with the following declaration: "Progress(RowIndex as integer, RowCount as integer)"
ReadLines and WriteLines define how many rows to read in one I/O operation.
Errorcodes:
global method, Pictures Import and Export, MBS Tiff Plugin (BitImage), Plugin version: 6.3, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Splits a one bit CMYK file into different files.
Notes:
Source file has 1 bit for each channel.
Error code is returned which is 0 for no error.
CacheSize can be set to a value greater than 0. And it may make the process faster or slower depending on what you do.
CallbackTarget can be nil or must be an object with a method with the following declaration: "Progress(RowIndex as integer, RowCount as integer)"
ReadLines and WriteLines define how many rows to read in one I/O operation.
Errorcodes:
| 1 | not used |
| 2 | Failed to open f |
| 3 | Failed to open fc |
| 4 | Failed to open fm |
| 5 | Failed to open fy |
| 6 | Failed to open fk |
| 7 | Width<1 |
| 8 | Height<1 |
| 9 | Allocating read buffer failed |
| 10 | Allocating write buffer failed for c |
| 11 | Allocating write buffer failed for m |
| 12 | Allocating write buffer failed for y |
| 13 | Allocating write buffer failed for k |
| 14 | Read failed |
| 15 | Write failed for c |
| 16 | Write failed for m |
| 17 | Write failed for y |
| 18 | Write failed for k |
TIFFStringToPictureMBS(data as string) as picture
global method, Pictures Import and Export, MBS Tiff Plugin (Tiff), Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Opens a tiff string and returns the RGB image for this tiff file.
Notes: Returns nil on any error.
global method, Pictures Import and Export, MBS Tiff Plugin (Tiff), Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Opens a tiff string and returns the RGB image for this tiff file.
Notes: Returns nil on any error.
TIFFStringToTiffPictureMBS(data as string) as TiffPictureMBS
global method, Pictures Import and Export, MBS Tiff Plugin (Tiff), Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Opens a tiff string and returns a TiffPictureMBS object.
Notes:
if you want to read the picture after this line you need to call ReadBW, ReadRGB or use the Scanline methods.
Returns nil on any error.
global method, Pictures Import and Export, MBS Tiff Plugin (Tiff), Plugin version: 6.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Opens a tiff string and returns a TiffPictureMBS object.
Notes:
if you want to read the picture after this line you need to call ReadBW, ReadRGB or use the Scanline methods.
Returns nil on any error.
The items on this page are in the following plugins: MBS Tiff Plugin.
Monkeybread Software Realbasic Plugins - Christians Software