# Problems with ImagePrinterLayer and LegendPrinterLayer

**URL:** <https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993>\
**Category:** WinForms\
**Created:** [June 7, 2012, 3:20pm UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993 "2012-06-07T15:20:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [June 7, 2012, 3:20pm UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/1 "2012-06-07T15:20:07Z")

</div>

Hi,

These&nbsp;issues&nbsp;popped&nbsp;up&nbsp;when&nbsp;we&nbsp;moved&nbsp;to&nbsp;version&nbsp;6.0&nbsp;of&nbsp;MSD.

  
&nbsp;&nbsp;&nbsp;&nbsp;1. When&nbsp;you&nbsp;click&nbsp;on&nbsp;an&nbsp;ImagePrinterLayer&nbsp;or&nbsp;a&nbsp;LegendPrinterLayer&nbsp;the&nbsp;handles&nbsp;appear&nbsp;for&nbsp;resizing,&nbsp;however&nbsp;the&nbsp;cross&nbsp;that&nbsp;used&nbsp;to&nbsp;appear&nbsp;in&nbsp;the&nbsp;center&nbsp;(showing&nbsp;where&nbsp;you&nbsp;have&nbsp;to&nbsp;click&nbsp;to&nbsp;move&nbsp;the&nbsp;object)&nbsp;is&nbsp;no&nbsp;longer&nbsp;visible.
  
&nbsp;&nbsp;&nbsp;&nbsp;2. When&nbsp;resizing&nbsp;an&nbsp;ImagePrinterLayer&nbsp;the&nbsp;image&nbsp;does&nbsp;not&nbsp;remain&nbsp;stationary.&nbsp;For&nbsp;example&nbsp;if&nbsp;you&nbsp;click&nbsp;on&nbsp;an&nbsp;image&nbsp;and&nbsp;then&nbsp;click&nbsp;and&nbsp;drag&nbsp;on&nbsp;the&nbsp;lower&nbsp;right&nbsp;corner,&nbsp;the&nbsp;upper&nbsp;left&nbsp;corner&nbsp;moves&nbsp;as&nbsp;well.&nbsp;How&nbsp;much&nbsp;it&nbsp;moves&nbsp;depends&nbsp;on&nbsp;the&nbsp;angle&nbsp;at&nbsp;which&nbsp;you&nbsp;drag&nbsp;the&nbsp;image.&nbsp;The&nbsp;more&nbsp;you&nbsp;drage&nbsp;towards&nbsp;the&nbsp;bottom&nbsp;of&nbsp;the&nbsp;image&nbsp;the&nbsp;more&nbsp;movement&nbsp;there&nbsp;is.
  

  

I&nbsp;have&nbsp;attached&nbsp;a&nbsp;sample&nbsp;project.

Thanks!

Steve

[PageLayoutTest.zip](https://community.thinkgeo.com/uploads/default/original/1X/53c5ba5ed78b918cdeddc35bc4622f573a255c66.zip) (144 KB)

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [June 28, 2012, 1:28pm UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/2 "2012-06-28T13:28:22Z")

</div>

Hello&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;post&nbsp;and&nbsp;I&nbsp;really&nbsp;appreciate&nbsp;your&nbsp;sample,&nbsp;I&nbsp;can&nbsp;see&nbsp;the&nbsp;problem,&nbsp;I&nbsp;believe&nbsp;it’s&nbsp;a&nbsp;bug&nbsp;and&nbsp;something&nbsp;wrong&nbsp;in&nbsp;the&nbsp;Calculate&nbsp;resize&nbsp;method.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Our&nbsp;product&nbsp;team&nbsp;is&nbsp;working&nbsp;on&nbsp;this&nbsp;and&nbsp;I&nbsp;will&nbsp;post&nbsp;any&nbsp;result&nbsp;here&nbsp;asap.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [July 25, 2012, 12:21am UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/3 "2012-07-25T00:21:51Z")

</div>

&nbsp;Steven,

Your&nbsp;sample&nbsp;is&nbsp;always&nbsp;informative&nbsp;and&nbsp;very&nbsp;easy&nbsp;to&nbsp;recreate&nbsp;the&nbsp;issue,&nbsp;thanks!

We've&nbsp;fixed&nbsp;the&nbsp;issue&nbsp;and&nbsp;to&nbsp;make&nbsp;it&nbsp;less&nbsp;confusing,&nbsp;&nbsp;we&nbsp;made&nbsp;some&nbsp;change&nbsp;that&nbsp;if&nbsp;a&nbsp;printerlayer.ResizeMode&nbsp;was&nbsp;set&nbsp;to&nbsp;MaintainAspectRatio,&nbsp;it'll&nbsp;only&nbsp;have&nbsp;4&nbsp;resize&nbsp;points&nbsp;on&nbsp;the&nbsp;4&nbsp;corners&nbsp;instead&nbsp;of&nbsp;8&nbsp;as&nbsp;following.&nbsp;Please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;(6.0.73.0&nbsp;or&nbsp;6.0.0.73&nbsp;or&nbsp;later)&nbsp;and&nbsp;have&nbsp;another&nbsp;try.

![](https://community.thinkgeo.com/uploads/default/original/2X/1/1d68614af4a9c915dc54d285143bffac0e4f0bcf.PNG)

Nice&nbsp;picture,&nbsp;by&nbsp;the&nbsp;way:)

Ben

---

<div class="post-metadata">

**Author:** ![arron](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/87869e/32.png) [@arron](https://community.thinkgeo.com/u/arron)\
**Post date:** [July 16, 2015, 11:19pm UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/4 "2015-07-16T23:19:14Z")

</div>

`Posted By Steven on 06-07-2012 03:20 PM`

`Hi,`

`

These issues popped up when we moved to version 6.0 of MSD.

        When you click on an ImagePrinterLayer or a LegendPrinterLayer the handles appear for resizing, however the cross that used to appear in the center (showing where you have to click to move the object) is no longer visible.
            When resizing an ImagePrinterLayer the image does not remain stationary. For example if you click on an image and then click and drag on the lower right corner, the upper left corner moves as well. How much it moves depends on the angle at which you drag the image. The more you drage towards the bottom of the image the more movement there is.
        
            I have attached a sample project.
            
Thanks!
            
Steve
    `Hi,&nbsp;Steve.  
  
&nbsp;&nbsp;&nbsp;&nbsp;  
  
&nbsp;&nbsp;&nbsp;&nbsp;Have&nbsp;you&nbsp;ever&nbsp;worked&nbsp;it&nbsp;out?&nbsp;I&nbsp;wonder&nbsp;how&nbsp;can&nbsp;I&nbsp;accomplish&nbsp;the&nbsp;[image&nbsp;resizing&nbsp;process](http://www.pqscan.com/convert-pdf/to-image-size-csharp.html).&nbsp;Do&nbsp;I&nbsp;need&nbsp;another&nbsp;image&nbsp;resizing&nbsp;SDK&nbsp;to&nbsp;help&nbsp;customize&nbsp;the&nbsp;size&nbsp;of&nbsp;images?&nbsp;I&nbsp;am&nbsp;almost&nbsp;a&nbsp;green&nbsp;hand&nbsp;here.&nbsp;Any&nbsp;suggestion&nbsp;will&nbsp;be&nbsp;appreciated.  
  
&nbsp;&nbsp;&nbsp;&nbsp;Thanks&nbsp;in&nbsp;advance.  
  
&nbsp;&nbsp;&nbsp;&nbsp;  
  
&nbsp;&nbsp;&nbsp;&nbsp;  
  
&nbsp;&nbsp;&nbsp;&nbsp;  
  
&nbsp;&nbsp;&nbsp;&nbsp;Best&nbsp;regards,  
  
&nbsp;&nbsp;&nbsp;&nbsp;Arron&nbsp;

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [July 17, 2015, 8:38am UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/5 "2015-07-17T08:38:46Z")

</div>

Hi&nbsp;Arron,&nbsp;  
  
  
  
I&nbsp;should&nbsp;have&nbsp;marked&nbsp;this&nbsp;problem&nbsp;as&nbsp;resolved&nbsp;3&nbsp;years&nbsp;ago&nbsp;because,&nbsp;just&nbsp;a&nbsp;Ben&nbsp;said,&nbsp;ThinkGeo&nbsp;corrected&nbsp;the&nbsp;problem.&nbsp;We&nbsp;are&nbsp;now&nbsp;on&nbsp;version&nbsp;8&nbsp;of&nbsp;MapSuite,&nbsp;soon&nbsp;upgrading&nbsp;to&nbsp;9.&nbsp;&nbsp;&nbsp;&nbsp;  
  
  
  
So&nbsp;if&nbsp;you&nbsp;are&nbsp;using&nbsp;any&nbsp;of&nbsp;the&nbsp;later&nbsp;versions&nbsp;of&nbsp;MapSuite&nbsp;and&nbsp;you&nbsp;add&nbsp;an&nbsp;ImagePrinterLayer&nbsp;to&nbsp;a&nbsp;page&nbsp;layout&nbsp;map&nbsp;you&nbsp;can&nbsp;resize&nbsp;and&nbsp;reposition&nbsp;the&nbsp;image&nbsp;using&nbsp;the&nbsp;mouse&nbsp;without&nbsp;having&nbsp;to&nbsp;write&nbsp;any&nbsp;additional&nbsp;code.&nbsp;And&nbsp;it&nbsp;works&nbsp;very&nbsp;well.&nbsp;The&nbsp;only&nbsp;improvement&nbsp;I&nbsp;would&nbsp;like&nbsp;to&nbsp;see&nbsp;is&nbsp;for&nbsp;the&nbsp;mouse&nbsp;pointer&nbsp;to&nbsp;change&nbsp;when&nbsp;it&nbsp;is&nbsp;positioned&nbsp;over&nbsp;one&nbsp;of&nbsp;the&nbsp;resizing&nbsp;“handles”.  
  
  
  
The&nbsp;[Page&nbsp;Layout&nbsp;Sample&nbsp;provided&nbsp;in&nbsp;ThinkGeo’s&nbsp;Wiki&nbsp;is&nbsp;excellent.](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_Printing_Samples)  
  
  
  
Best&nbsp;regards,  
  
  
  
Steve

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [July 19, 2015, 9:55pm UTC](https://community.thinkgeo.com/t/problems-with-imageprinterlayer-and-legendprinterlayer/1993/6 "2015-07-19T21:55:58Z")

</div>

Hi&nbsp;Steve,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;reply&nbsp;and&nbsp;support&nbsp;on&nbsp;map&nbsp;suite.&nbsp;For&nbsp;Arron’s&nbsp;issue,&nbsp;I&nbsp;think&nbsp;we&nbsp;can&nbsp;skip&nbsp;it&nbsp;as&nbsp;most&nbsp;of&nbsp;his&nbsp;questions&nbsp;are&nbsp;the&nbsp;same&nbsp;and&nbsp;without&nbsp;any&nbsp;responses&nbsp;later,&nbsp;looks&nbsp;like&nbsp;a&nbsp;trick.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Anyway,&nbsp;thanks&nbsp;for&nbsp;your&nbsp;reply.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Troy
