Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | draw.ID.pixelFormat SEARCH    

  Functions
draw.ID.brushFrom.ID
draw.ID.copyFrom.ID
draw.ID.copyMode
draw.ID.ellipse
draw.ID.getPixel
draw.ID.height
draw.ID.isEgual.ID
draw.ID.line
draw.ID.load
draw.ID.paint
draw.ID.pixelFormat
draw.ID.polygon
draw.ID.rect
draw.ID.rotate.sourceID
draw.ID.save
draw.ID.setPixel
draw.ID.size
draw.ID.text.ex
draw.ID.text.ex.getWidth
draw.ID.width
draw.isEgual.X
draw.isEgual.Y
draw.mem.create
draw.mem.createFromFile
draw.mem.delete
draw.mem.exists
draw.mx.deform
draw.mx.effects

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
draw.ID.pixelFormat

Language: MioScript
Product: MioFactory


Syntax

draw.ID.pixelFormat(PixelFormat)


Parameters

INTPixelFormatNumber of bytes per pixel (1, 4, 8, 15, 16, 24 or 32)


Return value

No value is returned.


Description

Set the bitmap pixel format (number of byte per pixel).
If you set the pixel format to a high value, the size of the bitmap in the memory is higher and the rendering is slower.

If the pixel format is set to 1, the bitmap is limited to 2 colors.
If the pixel format is set to 8, the bitmap is limited to 16 colors.
Etc...

The minimum pixel format to render images is 15 or 16 bytes per pixel.

The recommended value if 24 bytes for static images and 16 bytes for animations.




MioScript Sample Code

draw.main.pixelFormat(24)