Closed khaleel8039 closed 6 years ago
It's likely that the JotView is being resized after its created, causing its backing to be stretched in the vertical direction.
Are you creating the JotView in a xib, or in code? If in a xib, then it's likely getting the xib's initial size, but then being stretched with constraints/etc to a different size. Instead, create the view in code and wire it up that way so its size never changes after being initialized.
I have now initialised and added jot view in thru code but the result is still the same. I have attached a video link for your reference. As you can see in video I have a texture image of circle but when we draw it appears to be ellipse(compressing circle in width).
https://www.mediafire.com/file/dub51lw9zx6fa5k/screen-recording.mov
Try using JotSharedBrushTexture
instead of JotHighlighterBrushTexture
when you initialize your texture
I have tried but app is crashing if I return JotSharedBrushTexture texture instance from datasource method. Could you please provide me a sample with custom brush stroke which will provide same stroke in any directions.
I just pushed up a commit to master that changes the Marker in the jotuiexample
project to be a square
Its working now thanks Adam you saved my life.
I have used white rectangular image as texture image but width along one axis is different from other axis. Below is the attached texture image and output image which clearly shows stroke width is different in different directions.