Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

JPEGImporterMBS.AllowDamaged as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: whether you want damaged pictures to be returned.
Notes:
If AllowDamaged is false, nil will be returned if the picture is damaged.
Default value is false.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.BlockSmoothing as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Whether to do interblock smoothing.
Notes:
Default value is true.

This setting is relevant only when decoding a progressive JPEG image. During the first DC-only scan, block smoothing provides a very "fuzzy" look instead of the very "blocky" look seen without it; which is better seems a matter of personal taste. But block smoothing is nearly always a win during later stages, especially when decoding a successive-approximation image: smoothing helps to hide the slight blockiness that otherwise shows up on smooth gradients until the lowest coefficient bits are sent.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.CMYK as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.3 Yes Yes Yes Yes No
Function: Whether the decompressor has imported the picture as a CMYK image into a memoryblock.
Example:
dim g as FolderItem
dim ji as JPEGImporterMBS

g=getFolderItem("a_auf")
ji=new JPEGImporterMBS
ji.File=g
if ji.InitJPEG then

if ji.CMYK then
MsgBox "CMYK"
else
MsgBox "not"
end if
end if
Notes:
This property sets the Mode property to ModeCMYK.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ColorComponentCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.3 Yes Yes Yes Yes No
Function: The number of color components.
Notes:
1Grayscale
3RGB
4CMYK
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ColorSpace as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 13.4 Yes Yes Yes Yes No
Function: The color space of the image.
Example:
dim j as new JPEGImporterMBS

j.File = SpecialFolder.Desktop.Child("cmyk.jpg")

if j.InitJPEG then

Select case j.ColorSpace
case j.ColorSpaceCMYK, j.ColorSpaceYCCK
MsgBox "CMYK"
case j.ColorSpaceRGB, j.ColorSpaceYCbCr
MsgBox "RGB"
case j.ColorSpaceGrayScale
MsgBox "Gray"
else
MsgBox "unknown? "+str(j.ColorSpace)
end Select

j.FinishJPEG
end if
Notes:
See also the Colorspace constants.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.CurrentDepth as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The depth of the picture property.
Notes:
In the current implementation always 32bit.
0 if the loading of the picture failed.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.data as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The source string.
Notes:
If file is nil, the compressed data is taken from this property.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ErrorMessage as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The last error message reported.
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ExifData as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 8.5 Yes Yes Yes Yes No
Function: The exif data stored in the file.
Example:
dim j as JPEGImporterMBS
dim f as FolderItem

f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS

j.ReadExifData=true // needed to fill ExifData property

// do the import

dim data as string = j.ExifData

// work with data
Notes:
Only used when ReadExifData is set to true before you import the image.
The string contains the binary content of a exif data on disc.
Value is "" if no data was found.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.FancyUpsampling as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 12.1 Yes Yes Yes Yes No
Function: Whether to do fancy upsampling.
Notes:
Default value is true.

If true, use direct DCT scaling with DCT size > 8 for downsampling of chroma components. If false, use only DCT size <= 8 and simple separate downsampling. Default is true. For better image stability in multiple generation compression cycles it is preferable that this value matches the corresponding FancyUpsampling value in decompression.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.file as folderitem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The destination file.
Notes:
If file is nil, the source is taken from the data property.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.FileOffset as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The offset inside the file.
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.Height as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The height of the picture.
Notes:
0 if the loading of the picture failed.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.HorizontalResolution as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.2 Yes Yes Yes Yes No
Function: The horizontal resolution.
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.Mode as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 8.4 Yes Yes Yes Yes No
Function: The operation mode.
Notes:
Can be either ModePicture (Default), ModeRGB or ModeCMYK.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.OriginalDepth as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The original depth of the picture.
Notes:
Value maybe 8 for grayscale pictures and 24 or 32 for colored pictures.
0 if the loading of the picture failed.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.Picture as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The picture as the result.
Notes:
Set to nil on any error.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.PictureData as MemoryBlock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.2 Yes Yes Yes Yes No
Function: The cmyk picture data after importing.
Example:
dim g as FolderItem
dim ji as JPEGImporterMBS
dim je as JPEGExporterMBS
dim f as FolderItem
dim m as MemoryBlock

// import it
g=getFolderItem("CMYK Example.jpg")
ji=new JPEGImporterMBS
ji.File=g
ji.AllowDamaged=true
ji.ImportCMYK

m=ji.PictureData
msgBox g.name
// export it
f=SpecialFolder.Desktop.child("CMYK Example2.jpg")
je=new JPEGExporterMBS
je.File=f
je.Quality=75
je.ExportCMYK m, ji.Width, ji.Height, ji.Width*4
Notes:
Basicly a memoryblock with one byte for each channel.
For ReadByRow methods this property contains memoryblock for a row of the image.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ProfileData as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 7.2 Yes Yes Yes Yes No
Function: The ICC profile stored in the file.
Example:
dim f as FolderItem
dim j as JPEGImporterMBS
dim p as LCMS2ProfileMBS

f=SpecialFolder.Desktop.Child("test2.jpg")
j=new JPEGImporterMBS

j.ReadMarkers=true // else no metadata is read at all
j.ReadProfileData=true // needed to fill ProfileData property
j.file=f

j.Import

if j.ProfileData="" then
MsgBox "no profile"
Return
end if

p=LCMS2ProfileMBS.OpenProfileFromString(j.ProfileData)
MsgBox p.Name
Notes:
Only used when ReadProfileData is set to true before you import the image.
The string contains the binary content of a profile file on disc. So you can pass it to the CMOpenProfileFromDataMBS function or write it to a file using the binarystream class.
Value is "" if no profile was found.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ProgressiveMode as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 18.2 Yes Yes Yes Yes No
Function: Whether this is a progressive jpeg file.
Notes:
Loading progressive files needs more memory.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ReadExifData as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 8.5 Yes Yes Yes Yes No
Function: Whether the plugin should read in the exif data.
Example:
dim j as JPEGImporterMBS
dim f as FolderItem

f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS

j.ReadExifData=true // needed to fill ExifData property

// do the import

dim data as string = j.ExifData

// work with data
Notes:
If there is exif data, it will be stored in the ExifData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ReadMarkers as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 6.5 Yes Yes Yes Yes No
Function: Whether importer should read markers.
Example:
dim j as JPEGImporterMBS
dim f as FolderItem

f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS

j.ReadMarkers=true // else no metadata is read at all

// do the import

MsgBox str(j.MarkerCount)
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ReadProfileData as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 7.2 Yes Yes Yes Yes No
Function: Whether the plugin should read in the icc profile.
Example:
dim j as JPEGImporterMBS
dim f as FolderItem

f=SpecialFolder.Desktop.Child("test.jpg")
j=new JPEGImporterMBS

j.ReadProfileData=true // needed to fill ProfileData property

// do the import

dim Profile as string = j.ProfileData

// work with profile data
Notes:
If there is a profile, it will be stored in the ProfileData property.
Setting this value to true will set ReadMarkers to true, too.
A profile is stored in one or more markers, so it is needed to read them before extracting the profile.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ReadXMPData as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 8.5 Yes Yes Yes Yes No
Function: Whether the plugin should read in the xmp data.
Notes:
If there is xmp data, it will be stored in the XMPData property.
Setting this value to true will set ReadMarkers to true, too.
The data is stored in one or more markers, so it is needed to read them before extracting the data.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ResolutionUnit as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.2 Yes Yes Yes Yes No
Function: The unit of the resolution properties.
Notes:
Values:
0unknown
1dots per inch
2dots per cm
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.ScaleFactor as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 10.0 Yes Yes Yes Yes No
Function: The JPEG Library can scale down the picture on the fly.
Notes:
Allowed values: 0, 1, 2, 4, 8
0 and 1 disable scaling.
Default valus is 0 for no scaling.
(Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.VerticalResolution as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 3.2 Yes Yes Yes Yes No
Function: The vertical resolution.
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.WarningMessage as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin 8.5 Yes Yes Yes Yes No
Function: The last warning message reported.
Notes: (Read and Write property)

Feedback, Comments & Corrections

JPEGImporterMBS.Width as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property JPEG MBS Images Plugin Yes Yes Yes Yes No
Function: The width of the picture.
Notes:
0 if the loading of the picture failed.
(Read and Write property)

Feedback, Comments & Corrections

Next items

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





Links
MBS Xojo Chart Plugins