Ticket T185111
Visible to All Users

Missing property from PictureEdit.PictureEditViewInfo

created 10 years ago

Hi DX Team

I have an issue, after upgrading to 14.2.3 the following properties are missing from the PictureEdit.PictureEditViewInfo object.

PictureStartX
PictureStartY

Can you please advise which properties replaces this.

Looking forward to your reply.

With kind regards
David Maier
Fidelio Cruise Software

Answers approved by DevExpress Support

created 10 years ago

Hello David,
We made several improvements in the PictureEdit control. Now, the mentioned properties are substituted with other properties:
PictureStartX  -- > PictureScreenBounds.X
PictureStartY -- > PictureScreenBounds.Y

By the way, the PictureEditViewInfo class is designed for internal use. Would you please clarify for what task you used these properties?

    Show previous comments (1)
    Alisher (DevExpress Support) 10 years ago

      Hi Koen,

      As my colleague said,

      We made several improvements in the PictureEdit control. Now, the mentioned properties are substituted with other properties:
      PictureStartX  -- > PictureScreenBounds.X
      PictureStartY -- > PictureScreenBounds.Y

      Have you modified your code according to these changes?

        Hi there.
        Is it in the roadmap to provide a stable set of accessors to PictureEdit rendering information?  Zoom, pan, and image boundary information is all necessary to transform mouse click locations to image space coordinates.  This is a very common problem:
        https://www.devexpress.com/Support/Center/Question/Details/Q396201
        https://www.devexpress.com/Support/Center/Question/Details/Q456923
        https://www.devexpress.com/Support/Center/Question/Details/Q480729
        https://www.devexpress.com/Support/Center/Question/Details/Q581556
        https://www.devexpress.com/Support/Center/Question/Details/Q468562
        https://www.devexpress.com/Support/Center/Question/Details/T279293
        https://www.devexpress.com/Support/Center/Question/Details/T185111
        It seems that the common practice is to use the internal PictureEdit.PictureEditViewInfo, which is clearly a mistake because its interface is subject to change.
        I use a PictureEdit extension method
               Point ControlToImageCoordinates( this PictureEdit control, Point controlCoord ) { … }
        which is used in click handlers like this:
               private void Control1_MouseClick( Object sender, MouseEventArgs e ){
                   Point imageClickLocation = this.pictureEdit1.ControlToImageCoordinates( e.Location );
               }
        I would love it if something like that became part of the PictureEdit interface!

        Alisher (DevExpress Support) 10 years ago

          Hello,

          To process your recent post more efficiently, I created a separate ticket on your behalf: T280657: Provide a stable set of accessors to PictureEdit rendering information. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.