- To: mathgroup at smc.vnet.net
- Subject: [mg25546] Re: Mathlink
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sat, 7 Oct 2000 03:35:50 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
Here is a code snipped the MathGL3d use to transfer RGB bit maps
long int dims;
dims=(long) h; @+ dims=(long) w; @+ dims=channels;
and create the full Mathematica repesentation of a bitmap.
qing.cheng at icos.be wrote:
> Dear Mathgroup,
> I am a new member of Mathematica. I am trying to make communication between
> Mathematica and one external image processing broad. I have a
> communcation program which can transfer data between the broad and windows
> environment and I 've made a test program to link the C program with
> Mathematica through MathLink. The main problem I encounter now is about
> data type conversion when I try to send an image from external program to
> The data type I received from broad is BYTE and I only found three data
> type which MathLink accepts. They are Integer, Real and String(char*). I
> tried to use MLPutString, since it accept a char*,but I got something else.
> Then I tried to convert a BYTE* to int* before I send to MathLink and it's
> OK. However It consumes memory and time. Can I have a better solution?
> Thanks for any help.
> Qing Cheng
Prev by Date:
Re: Exporting multiple page graphics
Next by Date:
Re: Marcum Q function
Previous by thread:
Next by thread:
"Evaluate to Here" (solved)