Marc wrote:
With that functions can't be possible to display the pixels, but I have found the solution, thanks to Emil.

Heheh!
one problem you have!
Get and SetPixel is not a fast solution.
Only use GetDIBit ist a alternative.. verry fast for Animation.
Copy your Picture in the Memory and write it to your Display
with a Block of 6x8 or 8x8 Pixel.
Code:
Public Function IDriver_DisplayDrawGraphic(cntrl As Object, xoff As Long, yoff As Long, _
ByVal FontWidth As Integer, ByVal FontHight As Integer, _
ByVal Left As Long, ByVal Top As Long, _
ByVal Width As Long, ByVal Hight As Long)
Dim b8() As Byte
Dim b6() As Byte
Dim ret As Long
Dim intAddr As Integer
Dim X As Long
Dim Y As Long
Dim t As Single
ret = GetByteArray(cntrl.hdc, cntrl.Image, 1, b8())
ret = Convert8BitTo6Bit(b8(), b6(), DEFAULT_GRAPH_SPALTE)
With DisplayConfig
For Y = 0 To Hight - 1
'set address pointer to beginning of row
intAddr = .GraphHomeAddress + (((yoff + Y) + Top) * DEFAULT_GRAPH_SPALTE) + ((xoff / DEFAULT_BITS_PER_GRAPH_SPALTE) + Left)
Call WriteData(intAddr And 255)
Call WriteData(RShiftLong(intAddr, FontHight))
Call WriteCtrl(CMD_SET_ADDRESS_POINTER)
Call WriteCtrl(CMD_SET_DATA_AUTO_WRITE) 'auto write mode on
For X = 0 To DEFAULT_GRAPH_SPALTE - 1
WriteData b6(X, Y)
Next X
'//auto write mode off
Call WriteCtrl(CMD_SET_DATA_AUTO_RESET)
Next Y
End With
End Function
Only this Function is hightech for LCDDrawing routine
I use not pixel to pixel (is to slow!!!)
Here is a Sample projekt
http://dschi-el-zeh.de/Dateien/Morphing.rar
NewMethode = 8 Frames per Sec = 2678,01 ms / GetDIBits
OldMethode = 4 Frames per Sec = 5675,65 ms / GetPixels
by loading 20x (240x128) Bitmaps with a loop for Morphing
----------------------------------------------
always 50% Faster as Get/SetPixel
Greetings Emil