-
Notifications
You must be signed in to change notification settings - Fork 299
Container for image #95
Comments
I'm not sure I entirely understand the question. Are you asking for a control that can be used to draw a Canvas? If so, I could add a Canvas getter / setter to Image without much difficulty. |
There is an example Polygon. |
Ben, tell me, I made it clear to you a question? |
Yes, in the Polygon sample, all child Image controls are added as children to the Window, but there's nothing stopping the Images from being placed into other Containers such as a LinearLayout. It's still not completely clear to me what you're asking. If you'd like more control over what's displayed in an Image, then I think it's not too hard to add: Canvas() Canvas
SetCanvas(Cavas) to the Image interface. These would probably replace the existing Polygon properties. I hope I'm closer to answering your question. |
LinearLayout is a Container that lays out its child Controls into a column or row. |
Ben, I made the following changes.These changes gave the desired result.
|
Okay, I think I'm finally understanding exactly what you're asking for. This does kind of layout does not belong in LinearLayout, instead it should probably be a new AbsoluteLayout. Regardless, I still believe what you're wanting is a SetCanvas method on Image. Stacking Image controls is an inefficient way to layer polygons. If you had Image.SetCanvas, you would be able to draw layered polygons, rects and fonts all into one canvas, then pass that composed image on to one Image control. I'm crazy busy with work at the moment, but if this gives you what you need, I'll try and implement this for you soon. |
Please take a look at the new polygon sample code. This should show you how you can layer polygons by drawing them to a Canvas, completing the canvas, then passing the complete Canvas to the Image. Let me know if this still doesn't solve your issues. |
There is a need to realize the similarity of the graphic editor. Need a container for images, but not the main window. What realties like Canvas. What do you advise?
The text was updated successfully, but these errors were encountered: