SRL Archive - Help and Support

Exporting SMART's image data


KingKong

2011-12-01 04:24:54

How does Simba(or SCAR for that matter) get the image from SMART? Because ive looked at all the functions that SMART exports and only two(one?) of them look like they can be used(getimageHDC/getimageHDCArray) to do this.

P.S. I need to do this in python btw. I know its got something to do with get the image from HDC, but im not sure how. And don't even mention libmml here!:norris:

Wizzup?

2011-12-01 05:55:11

Simba has direct access to a pointer SMART provides it with. So it doesn't have to copy anything and can read directly. SCAR has to copy the entire smart image every time before it can read it.

KingKong

2011-12-01 06:38:26

From: Wizzup?
Simba has direct access to a pointer SMART provides it with. So it doesn't have to copy anything and can read directly. SCAR has to copy the entire smart image every time before it can read it.


Is there a function that exports this pointer from SMART?(im guessing its getimageHDCArray
Assuming it is getimageHDCArray, how would i get the data from it using python?

Wizzup?

2011-12-01 06:39:42

From: KingKong
Is there a function that exports this pointer from SMART?(im guessing its getimageHDCArray
Assuming it is getimageHDCArray, how would i get the data from it using python?


http://git.villavu.com/srl-opendev.git/tree/SRL.scar#n203

``SmartImageArray''

KingKong

2011-12-03 00:03:00

Well, i used python to get the pointer from SMART and then passed it to another DLL i made, but the colors that are output by my DLL are messed up, here are the results, someone tell me whats going on?