Comments (3)
I ran into the same problem on a branch that I was playing around with. I managed to fix it in my local translation (which is now written in C#) but someone working on this could do a similar fix in Objective C.
In AceDrawingView.drawings(), after the looping over the pathArray and calling [tool draw] on each, I did something like this:
foreach (UIView childView in Subviews)
{
if (childView is AceDrawingLabelView)
{
AceDrawingLabelView labelView = childView as AceDrawingLabelView;
CGContext context = UIGraphics.GetCurrentContext();
context.TranslateCTM(labelView.Frame.Location.X, labelView.Frame.Location.Y);
context.RotateCTM((System.nfloat)AceDrawingLabelView.CGAffineTransformGetAngle(labelView.Transform));
labelView.Layer.RenderInContext(context);
context.TranslateCTM(-labelView.Frame.Location.X, -labelView.Frame.Location.Y);
}
}
from acedrawingview.
Please translate the above @cainunable 's C# to Objective-C code...
from acedrawingview.
Actually issue 76 included a PR for a fix for that, simpler than looping over the subviews. The problem is that @acerbetti forgot to modify the - (UIImage *)applyDrawToImage:(UIImage *)baseImage
method. I'll provide a PR for that
from acedrawingview.
Related Issues (20)
- hideHandle() HOT 2
- Text label(ACEDrawingLabelView) missing after save image HOT 6
- Texture support HOT 1
- change font and color for existing text? HOT 2
- Custom Shapes HOT 1
- Having the ability to store the drawn paths and load them into the view when app is loaded HOT 2
- Play back support
- Clear doesn't actually clear HOT 2
- Start editing when user lands on Drawing View
- Drawing view is not supporting orientation. HOT 1
- How to create brush tool? HOT 2
- predict the pressure sensitivity of the user's finger to define the thickness of the brush
- Draggable textview position problem HOT 2
- Is it possible to select and and delete any drawing object ?
- Support for brush textures? HOT 1
- How to get the line position?
- Can I get the bounding box containing only drawing ? HOT 1
- "Invalid suffix '.1' on floating constant" HOT 4
- latency issues
- Semantic Issues Warn "Method prev_image, setPrev_image deplecated here". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acedrawingview.