Hi everyone,
I have to research the fastest way to transfer pictures from a C# application - which generates them - to a VB6 form... if this can be done at all. Animation by replacing must be possible, but the smoother the better. Storing the pictures somewhere on disk and loading them in VB6 is no option. Both the C# end and the VB6 end are mine to develop at the moment.
Currently I can store the picture data (a .NET Bitmap class) in memory and the address from which to start reading is known - but I am a little at a loss on how to proceed.
Assuming that I can read the picture's data into a VB6 array and that the format these bytes represent is known: is there a way to convert the bytes back into an actual picture? What I'm looking for is LoadPicture() that takes a memory address + number of bytes to read form that address as parameters, instead of a string representing a file name. I'm pretty sure the function doesn't exist in VB6, so how can it be implemented?
Any help here will be much appreciated!
Thanks,
Cooz
I have to research the fastest way to transfer pictures from a C# application - which generates them - to a VB6 form... if this can be done at all. Animation by replacing must be possible, but the smoother the better. Storing the pictures somewhere on disk and loading them in VB6 is no option. Both the C# end and the VB6 end are mine to develop at the moment.
Currently I can store the picture data (a .NET Bitmap class) in memory and the address from which to start reading is known - but I am a little at a loss on how to proceed.
Assuming that I can read the picture's data into a VB6 array and that the format these bytes represent is known: is there a way to convert the bytes back into an actual picture? What I'm looking for is LoadPicture() that takes a memory address + number of bytes to read form that address as parameters, instead of a string representing a file name. I'm pretty sure the function doesn't exist in VB6, so how can it be implemented?
Any help here will be much appreciated!
Thanks,
Cooz