midora Posted January 13, 2013 Share Posted January 13, 2013 One issue which disturbs me using the PanAndSlider property is that if you are panning then it is not possible to drag back to the 0/0 center. You are getting values like 0.02 or -0.01 always. Second: I'm using the following code to setup the background of PanAndSlider: Bitmap bitmap = new Bitmap(100, 100); // Creates a transparent bitmap configUI.SetPropertyControlValue(PropertyNames.RotateXYDeg, ControlInfoPropertyNames.StaticImageUnderlay, ImageResource.FromImage(bitmap)); This shows a nice checkerboard background which makes more sense for the plugin than the standard: Bitmap bitmap = this.EnvironmentParameters.SourceSurface.CreateAliasedBitmap(); Is there a better way than to use these constant values 100,100? Quote Link to comment Share on other sites More sharing options...
midora Posted February 17, 2013 Author Share Posted February 17, 2013 One issue which disturbs me using the PanAndSlider property is that if you are panning then it is not possible to drag back to the 0/0 center. You are getting values like 0.02 or -0.01 always. The reason for this is that the calculation of the rectangle for the embedded pan control always sets the value to odd (using |= 1). Because of this it is not possible to pan to a center value of 0/0 with the mouse. Quote Link to comment Share on other sites More sharing options...
pdnnoob Posted February 20, 2013 Share Posted February 20, 2013 I'm no programmer, but from a user's point of view, I find it much more convenient to just click the reset buttons if I want to get to zero, anyways. Quote No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo Link to comment Share on other sites More sharing options...
midora Posted February 23, 2013 Author Share Posted February 23, 2013 I'm no programmer, but from a user's point of view, I find it much more convenient to just click the reset buttons if I want to get to zero, anyways. That's how a good user interface should work. Every user should be able to use his preferred way to do things. Or? And the zero value is just an example of the issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.