Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |   Code Community

Discussion Forums

The online community for users of Map Suite GIS components

Setting Bitmap Resolution
Last Post 06-04-2009 08:45 PM by Yale. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
SteveUser is Offline
Level 3
Level 3
Posts:70
Avatar

--
06-03-2009 06:27 PM

I am creating bitmaps using the bitmap.save() method and the resulting images (800x600) are very pixalated when the are zoomed in on with image edition software (Photoshop, Paint, etc). Is there a way I could set the resolution higher to prevent the pixelation?


Private mBitmap As Bitmap
    Public Function Export() As Byte()

        mMap.OpenAllLayers()
        mMap.DrawStaticLayers(mBitmap, GeographyUnit.DecimalDegree)
        mMap.DrawAdornmentLayers(mBitmap, GeographyUnit.DecimalDegree)
        mMap.CloseAllLayers()

        Dim lStream As New System.IO.MemoryStream

        mBitmap.Save(lStream, Imaging.ImageFormat.Png)

        Return lStream.GetBuffer()

    End Function

 

YaleUser is Offline
MVP
MVP
Posts:1771
Avatar

--
06-03-2009 11:25 PM

Steve,

Just try the following statement:


mBitmap.SetResolution(960, 960) 

Any more questions, just let me know.

Thanks.

Yale

code.thinkgeo.com
SteveUser is Offline
Level 3
Level 3
Posts:70
Avatar

--
06-04-2009 06:22 PM

Yale,

Thanks for that code! When I increase the resolution I am seeing the labels increase in size as shown below. I am adding the labels via an adornment layer. Any ideas?

YaleUser is Offline
MVP
MVP
Posts:1771
Avatar

--
06-04-2009 08:45 PM
Steven,

I think the result is what we expected. The enlarged label is the result in an enlarged resolution.

If you do not want to be enlarged, I guess you need to set a proper resolution for it.

Any further questions just let me know.

Thanks.

Yale
code.thinkgeo.com
You are not authorized to post a reply.

Active Forums 4.2