Ok... we have finally gotten to the point where we are ready to load raster images from our database. We have these stored as blobs, and can readily turn them into binary streams. But I'm at a bit of a loss on how to proceed, depending upon the type of imagery.
We have some images that are small .bmp or .png images, with world files. I can create a stream for the image portion, and I know the world file (or bounding box) information. Looks like I create a GDIPlusRasterSource and provide the stream on the StreamLoading event? But, will I get the loading event twice... once for the image and once for the world file? Or do I need to set the image extent in the constructor. If the latter, do you treat the image extent as the outer edge of the pixel (as would be implied), or the center of the pixel, as defined in the world file spec?
Then, we also have some imagery that is ECW, JPG2000, and SID. These have embedded georeferencing. However, I don't see a StreamLoading event on the matching raster data source objects. To load this imagery, will I need to write the data I extract from our database out to a temp file?
I've searched on StreamLoading, and did not find any answer to these questions. And the HowDoI samples don't show loading anything from a stream. I'll be glad to look in other locations for documentation, if you can give me a nudge.