Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 546728

Summary: Deprecation note in Image#getBoundsInPixel should list the method which should be used
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: SWTAssignee: Niraj Modi <niraj.modi>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, sravankumarl
Version: 4.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=546729
Whiteboard:
Bug Depends on: 516639    
Bug Blocks:    

Description Lars Vogel CLA 2019-04-25 05:48:20 EDT
Javadoc of  Image#getBoundsInPixel currently says:

* @deprecated This API doesn't serve the purpose in an environment having
 *             multiple monitors with different DPIs, hence deprecated.

This gives no hint which method should be used. Please the information which method should be used instead.
Comment 1 Lars Vogel CLA 2019-04-25 05:49:52 EDT
Niraj, please have a look.
Comment 2 Sravan Kumar Lakkimsetti CLA 2019-04-26 03:01:09 EDT
(In reply to Lars Vogel from comment #0)
> Javadoc of  Image#getBoundsInPixel currently says:
> 
> * @deprecated This API doesn't serve the purpose in an environment having
>  *             multiple monitors with different DPIs, hence deprecated.
> 
> This gives no hint which method should be used. Please the information which
> method should be used instead.

We introduced this api for SWT internal use(we had to use this across packages in SWT). We would not want end users use this method. That is the reason this method is deprecated.
Comment 3 Lars Vogel CLA 2019-04-26 03:34:58 EDT
Thanks Sravan.