Stiil confused (
Seems, need to explain more clear what i'm doing.
1. Third party code prepares a raw RGBA image ( actually BGRA ). I know image adress, image Width and Height, and image Pitch = len of one pixels line. Pitch in general is not equal to Width*4. Also, a destination adress is known, where i need to put "processed" image.
2. So, I decide to create a DLL for this, that would make all this job. Fiest step is just to copy source data into destination. Processing is another step, not significant to talk about here
3. Dll code is:
Code: Select all
ProcedureDLL ImageProcessing( Width, Height, SourceAdress, DestAdress, Pitch )
S1 = SourceAdress
D1 = DesrAdress
DrawWidth = Width
DrawHeight = Height
Sstep = Pitch
Dstep = Pitch
for y = 1 to DrawHeight
S = S1
D = D1
for x = 1 to DrawWidth
B = PeekI( S )
S = S + 4
PokeI( D, B )
D = D + 4
next x
S = S + Sstep
D = D + Dstep
next y
EndProcedure
and this works perfect. But asembly not (