Skip to content

Add image property for visible objects #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
traviskirton opened this issue Jan 14, 2016 · 2 comments
Closed

Add image property for visible objects #593

traviskirton opened this issue Jan 14, 2016 · 2 comments
Milestone

Comments

@traviskirton
Copy link
Collaborator

let C4Image = shape.image

This should take into consideration the bounds of shape line widths.

let C4Image = view.image

This should render all sublayers, taking into the view's masksToBounds property.

@alejandro-isaza
Copy link
Member

May be better to do shape.render()

@traviskirton
Copy link
Collaborator Author

yup, the above were just placeholders...

there are options I was planning to consider like:

obj.bitmap()
obj.bitmap(dpi,scale)

also

obj.drawIn(pdfContext)

will have a think on all these and post something I hope is reasonably intelligent..

traviskirton added a commit that referenced this issue Jan 17, 2016
Tested with C4Image, C4Circle and C4Star, C4Line

Fixes: #593
@traviskirton traviskirton added this to the 1.1.x milestone Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants