Enhancing imageview implemantation
See original GitHub issueIn ImageView
what are the things that still need implementation
class ImageView(Widget):
"""
Args:
image (:class:`toga.Image`): The image to display.
id (str): An identifier for this widget.
style (:obj:`Style`):
factory (:obj:`module`): A python module that is capable to return a
implementation of this class with the same name. (optional & normally not needed)
Todo:
* Finish implementation.
"""
Also, in the same file of imageview
, are these lines important, as I understood style
object will do the work of scaling
and alignment
.
# @property
# def alignment(self):
# return self._alignment
# @alignment.setter
# def alignment(self, value):
# self._alignment = value
# self._impl.setAlignment_(NSTextAlignment(self._alignment))
# @property
# def scaling(self):
# return self._scaling
# @scaling.setter
# def scaling(self, value):
# self._scaling = value
# self._impl.setAlignment_(NSTextAlignment(self._scaling))
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
ImageView - Android Developers
ImageView ; ImageView; ImageView; ImageView ... Views should implement this if they have extra information to associate with the context menu.
Read more >How to Increase the size of Image View in Android
The easiest way to handle this is to set the ScaleType of the ImageView. There are a number of Scaling Types, but the...
Read more >Real Time Implementation of Image Enhancement Based on ...
The enhanced V is combined with H and S are converted back into RGB. The experimental results vividly displays the proposed algorithm is...
Read more >How to Implement Shapeable ImageView in Android?
In Android, ShapeableImageView is used to change the shape of your image to circle, diamond, etc. Also, you can set a corner radius...
Read more >Let's enhance: use Intel AI to increase image resolution in this ...
We have two pictures of Intel CEO Patrick Gelsinger; one is somewhat blurry—you can't really see his facial features clearly.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To some extent you’ve answered your own question: Basic CSS lets you do <list of things>; Toga currently allows <subset of that list of things>; that means we need to add the things that aren’t currently implemented.
That said:
The task at this point is to make an API proposal.
If you wanted to start simple - take something like the “clickable link” feature. That’s a feature that is currently missing. So - propose how we’d add it. As a guide, we have existing examples of “onclick” handlers in Toga, so there won’t be an extensive “design” process - you can probably move right to implementation. But for the other features (like transparency or the height/width adjustments I mentioned), you’ll need to make a proposal for the end-user interface to that feature.
Closing as the proposal doesn’t appear to be heading in a direction that is likely to be accepted.