ImageGear for .NET
ImGearColorBook Constructor(ImGearSpotColorVendorID,String,String,String,String,String,Int32,Int32,ImGearColorSpaceIDs)
Example 




Color book vendor ID.
Color book file name.
Color book title.
Color book prefix.
Color book postfix.
Color book description.
Number of colors in color book.
Number of colors per page in color book.
Color type.
Initializes a new instance of the ImGearColorBook class with specified parameters.
Syntax
'Declaration
 
Public Function New( _
   ByVal vendorId As ImGearSpotColorVendorID, _
   ByVal fileName As String, _
   ByVal title As String, _
   ByVal prefix As String, _
   ByVal postfix As String, _
   ByVal description As String, _
   ByVal numberOfColors As Integer, _
   ByVal colorsPerPage As Integer, _
   ByVal colorType As ImGearColorSpaceIDs _
)
'Usage
 
Dim vendorId As ImGearSpotColorVendorID
Dim fileName As String
Dim title As String
Dim prefix As String
Dim postfix As String
Dim description As String
Dim numberOfColors As Integer
Dim colorsPerPage As Integer
Dim colorType As ImGearColorSpaceIDs
 
Dim instance As New ImGearColorBook(vendorId, fileName, title, prefix, postfix, description, numberOfColors, colorsPerPage, colorType)
public ImGearColorBook( 
   ImGearSpotColorVendorID vendorId,
   string fileName,
   string title,
   string prefix,
   string postfix,
   string description,
   int numberOfColors,
   int colorsPerPage,
   ImGearColorSpaceIDs colorType
)

Parameters

vendorId
Color book vendor ID.
fileName
Color book file name.
title
Color book title.
prefix
Color book prefix.
postfix
Color book postfix.
description
Color book description.
numberOfColors
Number of colors in color book.
colorsPerPage
Number of colors per page in color book.
colorType
Color type.
Example
ImGearColorBooks.Initialize(files);
ImGearColorBook book = new ImGearColorBook(ImGearSpotColorVendorID.PantoneProcess, "", "My Color Book", "Prefix", "Postfix", "Description", 2, 2, ImGearColorSpaceIDs.LAB);
ImGearPixel p = new ImGearPixel(3, 8);
p[0] = 138; p[1] = 202; p[2] = 169;
book.Add(new ImGearColorBookColor("PANTONE Red 032 C", 90452819915331, p, ImGearColorSpaceIDs.LAB));
p[0] = 48; p[1] = 160; p[2] = 54;
book.Add(new ImGearColorBookColor("PANTONE reflex Blue C", 90457418519875, p, ImGearColorSpaceIDs.LAB));
ImGearColorBooks.Add(book);
ImGearColorBooks.Initialize(files)
book = New ImGearColorBook(ImGearSpotColorVendorID.PantoneProcess, "", "My Color Book", "Prefix", "Postfix", "Description", 2, 2, ImGearColorSpaceIDs.LAB)
p = New ImGearPixel(3, 8)
p(0) = 138
p(1) = 202
p(2) = 169
book.Add(New ImGearColorBookColor("PANTONE Red 032 C", 90452819915331, p, ImGearColorSpaceIDs.LAB))
p(0) = 48
p(1) = 160
p(2) = 54
book.Add(New ImGearColorBookColor("PANTONE reflex Blue C", 90457418519875, p, ImGearColorSpaceIDs.LAB))
ImGearColorBooks.Add(book)
See Also

Reference

ImGearColorBook Class
ImGearColorBook Members
Overload List

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback