Hi,
I am using Map Suite Desktop Edition v.4 at the moment. I was wondering, do we have a similar method in v.4 for GetBitmapScreenHeight and GetBitmapScreenWidth in v.2 ??
Many Thanks.
Regards,
Vin.
Hi,
I am using Map Suite Desktop Edition v.4 at the moment. I was wondering, do we have a similar method in v.4 for GetBitmapScreenHeight and GetBitmapScreenWidth in v.2 ??
Many Thanks.
Regards,
Vin.
Vin,
Thanks for your post and questions.
I am afraid I probably misunderstood something, because I did not find the API GetBitmapScreenHeight or GetBitmapScreenWidth in MapSuite2 series, I only find the following APIs, hope it is what you are mentioning.
public void GetBitmap(ref Bitmap Bitmap, bool IncludePrint);
public Bitmap GetBitmap(int Width, int Height, bool IncludePrint);
public void GetBitmap(Graphics g, int Width, int Height, bool IncludePrint);
I think in MapSuite4 or later versions, it contains a similar API to implement the same functionarlity.
public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds);
Any more questions or ideas please feel free to let me know.
Thanks.
Yale
Hi Yale,
The functions that I mentioned are:
thinkgeo.com/MapSuiteDocumentation/DesktopEdition/DesktopEdition~MapSuite.Misc~GetBitmapScreenHeight.html
thinkgeo.com/MapSuiteDocumentation/DesktopEdition/DesktopEdition~MapSuite.Misc~GetBitmapScreenWidth.html
Do we have similar function in v.4 ? Thanks.
Vin.
Vin,
Thanks for your post and feedback.
We do not provide these static functions in v4, while I reviewed the code in v2, see following code snippet shown here:
Public Shared Function GetBitmapScreenWidth(ByVal Bitmap As Bitmap) As Integer
Return CInt((100 * Bitmap.Width) / Bitmap.HorizontalResolution)
End Function
Public Shared Function GetBitmapScreenHeight(ByVal Bitmap As Bitmap) As Integer
Return CInt((100 * Bitmap.Height) / Bitmap.VerticalResolution)
End Function
Any more questions please feel free to let me know.
Thanks.
Yale
Hi Yale,
Thanks for that!
Vin.
v,
I am glad it’s working with you.
Just let us know if you have more questions.
Thanks
James