Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: Image from memory/resources instead of disk

$
0
0
Buffer for in-memory images doesn't store alpha channel, so it won't be possible to have semi transparent pixels in it. Fully transparent pixels can be dealt with easily by setting Image.TransparencyColor and Image.UseTransparency color. As for ways to populate MapWinGIS Image from resource, there are several ones to try: init GDI+ bitmap from resource stream first and pass data pixel by pixel, Image.Serialize method (it can save pixels as base64 string), probably Image.SetImageBitsDC (I haven't tried it myslef).

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>