Contents
Navigation
Home User Reference Other Resources


The QTPlgImageARGB class implements support for 32–bit color images. The image data are represented with quadruplets of unsigned char integer values ranging from 0 to 255. Each quadruplet of byte represents the alpha, red, green and blue channel values respectively.

Since version 6.7 of the plugin this class has been deprecated and will be removed from a future plugin version; so, you should stop using it and, instead, you should only use the services provided by the class. The new plugin design, in fact, provides you with the QTPlgImage as a class cluster that generates different types of images and work on them hiding to you the implementation details.







The QTPlgImageARGB class constructors are called when you create a new instance of the class, while the ˜QTPlgImageARGB class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.

Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. See the validity requirements for more details. As, when creating an instance of this class by using the , the and class properties are both set to 0, the class property results to be false; this being the case, it is lecit to continue to use the class.


The class provides you with the following initializer methods:
()
This is the default constructor. The and class properties are both set to 0 and the buffer of data is initialized to nil. You can use whether one of the class methods or the method to initialize the data buffer with the needed image source
(other as QTPlgImageARGB)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties
(p as picture)
using this class constructor initializes the class properties with the data extracted from the RealBasic picture specified by the p parameter
(w as integer, h as integer, data as memoryblock)
use this constructor version to initialize the class properties accordingly to the values of width and height specified by the w and h parameters respectively. Also, you can provide a block of raw data to be copied into the newly allocated data buffer; this being the case, it is up to you to ensure that the data passed into the data parameter are compatible with the current image instance