Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Best way to call new API method Image#getImageData(int zoom) ?
Best way to call new API method Image#getImageData(int zoom) ? [message #1775368] Sat, 28 October 2017 08:56 Go to next message
Eclipse UserFriend
I've been using the SWT Image method Image#getImageDataAtCurrentZoom() which is now deprecated in Eclipse Oxygen. It is replaced by Image#getImageData(int zoom)

What's the best way to get the current zoom level for the zoom argument? One way I found is:

image.getImageData(DPIUtil.getDeviceZoom());

However, DPIUtil.getDeviceZoom() is marked as internal and is not API. Is there a better way?

[Updated on: Mon, 27 November 2017 06:47] by Moderator

Re: Best way to call new API method Image#getImageData(int zoom) ? [message #1776089 is a reply to message #1775368] Fri, 10 November 2017 10:01 Go to previous message
Eclipse UserFriend
My recollection is that you can provide an ImageDataProvider that is called into by SWT with the appropriate zoom required.
Previous Topic:Adding lable to swt table header
Next Topic:Is it possible to make a dropdown SWT Menu scrollable?
Goto Forum:
  


Current Time: Mon Jul 14 18:51:41 EDT 2025

Powered by FUDForum. Page generated in 0.03943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top