Platforms to show: All Mac Windows Linux Cross-Platform

Back to JPEGImporterMBS class.

JPEGImporterMBS.ColorSpaceCMYK = 4

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.
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

C/M/Y/K

JPEGImporterMBS.ColorSpaceGrayScale = 1

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.

Gray

JPEGImporterMBS.ColorSpaceRGB = 2

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.

red/green/blue

JPEGImporterMBS.ColorSpaceUnknown = 0

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.

Not set.

JPEGImporterMBS.ColorSpaceYCbCr = 3

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.

Y/Cb/Cr (also known as YUV)

JPEGImporterMBS.ColorSpaceYCCK = 5

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the color spaces.

Y/Cb/Cr/K

JPEGImporterMBS.kOrientationBottomLeft = 4

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 bottom, col 0 lhs

JPEGImporterMBS.kOrientationBottomRight = 3

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 bottom, col 0 rhs

JPEGImporterMBS.kOrientationLeftBottom = 8

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 lhs, col 0 bottom

JPEGImporterMBS.kOrientationLeftTop = 5

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 lhs, col 0 top

JPEGImporterMBS.kOrientationRightBottom = 7

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 rhs, col 0 bottom

JPEGImporterMBS.kOrientationRightTop = 6

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 rhs, col 0 top

JPEGImporterMBS.kOrientationTopLeft = 1

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 top, col 0 lhs

JPEGImporterMBS.kOrientationTopRight = 2

Type Topic Plugin Version
const JPEG MBS Images Plugin 20.1
One of the orientation constants.

row 0 top, col 0 rhs

JPEGImporterMBS.ModeAuto = 30

Type Topic Plugin Version
const JPEG MBS Images Plugin 15.2
One of the mode constants.
Example
dim j as new JPEGImporterMBS
j.File = SpecialFolder.Desktop.Child("test.jpg")
j.Mode = j.ModeAuto
j.Import
// check Mode after to see if we got ModeRGB, ModeGray or ModeCMYK here.

Load the image into the picturedata property.
Switches on import to RGB, Gray or CMYK depending on color space of JPEG file.

JPEGImporterMBS.ModeAutoByRow = 31

Type Topic Plugin Version
const JPEG MBS Images Plugin 15.2
One of the mode constants.
Example
dim j as new JPEGImporterMBS
j.File = SpecialFolder.Desktop.Child("test.jpg")
j.Mode = j.ModeAutoByRow
j.Import
// check Mode after to see if we got ModeRGBbyRow, ModeGraybyRow or ModeCMYKbyRow here.

Load the image into the picturedata property.
Switches on import to RGB, Gray or CMYK depending on color space of JPEG file.

JPEGImporterMBS.ModeCMYK = 2

Type Topic Plugin Version
const JPEG MBS Images Plugin 8.4
One of the mode constants.

Load the image into the picturedata property.
The PictureData Memoryblock uses 4 bytes per pixel.

JPEGImporterMBS.ModeCMYKbyRow = 12

Type Topic Plugin Version
const JPEG MBS Images Plugin 9.1
One of the mode constants.

Same as ModeCMYK, but PictureData contains only the current row
The PictureData Memoryblock uses 4 bytes per pixel.

JPEGImporterMBS.ModeGray = 3

Type Topic Plugin Version
const JPEG MBS Images Plugin 8.7
One of the mode constants.
Example
dim j as new JPEGImporterMBS

j.Mode=j.ModeGray
j.File=SpecialFolder.Desktop.Child("testGray.JPG")
j.Import

MsgBox str(j.Width)+" x "+str(j.Height)

Load the image into the picturedata property.
The PictureData Memoryblock uses one byte per pixel.

JPEGImporterMBS.ModeGraybyRow = 13

Type Topic Plugin Version
const JPEG MBS Images Plugin 9.1
One of the mode constants.

Same as ModeGray, but PictureData contains only the current row
The PictureData Memoryblock uses one byte per pixel.

JPEGImporterMBS.ModePicture = 0

Type Topic Plugin Version
const JPEG MBS Images Plugin 8.4
One of the mode constants.

Load the image into the picture property.

JPEGImporterMBS.ModeRaw = 20

Type Topic Plugin Version
const JPEG MBS Images Plugin 13.4
One of the mode constants.

Load the image into the picturedata property.
The PictureData Memoryblock uses 1 to 4 bytes per pixel.

Check the colorspace property to know which color space is used.

JPEGImporterMBS.ModeRGB = 1

Type Topic Plugin Version
const JPEG MBS Images Plugin 8.4
One of the mode constants.
Example
dim j as new JPEGImporterMBS

j.Mode=j.ModeRGB
j.File=SpecialFolder.Desktop.Child("testRGB.JPG")
j.Import

MsgBox str(j.Width)+" x "+str(j.Height)

Load the image into the picturedata property.
The PictureData Memoryblock uses 3 bytes per pixel.

JPEGImporterMBS.ModeRGBbyRow = 11

Type Topic Plugin Version
const JPEG MBS Images Plugin 9.1
One of the mode constants.

Same as ModeRGB, but PictureData contains only the current row
The PictureData Memoryblock uses 3 bytes per pixel.

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


💬 Ask a question or report a problem
The biggest plugin in space...