You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
App is crashing in the library and here is the debug output:
2020-08-12 10:33:12.258598+1000 PokitMeter - Dev[339:20686] [Unknown process name] CGContextSetTextMatrix: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2020-08-12 10:33:12.258833+1000 PokitMeter - Dev[339:20686] [Unknown process name] CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2020-08-12 10:33:12.258948+1000 PokitMeter - Dev[339:20686] [Unknown process name] CGContextRotateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2020-08-12 10:33:12.259041+1000 PokitMeter - Dev[339:20686] [Unknown process name] CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2020-08-12 10:33:12.259352+1000 PokitMeter - Dev[339:20686] validateTextureDimensions, line 1226: error 'MTLTextureDescriptor has width of zero.'
validateTextureDimensions:1226: failed assertion `MTLTextureDescriptor has width of zero.'
If I add text to the attributed string crash issue is getting fixed but it does not show my image:
Currently, you can't add images to annotation labels. As a workaround, you can subclass SCIAnnotationLabel, override onDraw:assetManager:, create a texture from your image and draw it instead of a label. See the code below:
Hi SciChart team,
I would like to add and image to annotation without any text. Here is my code to create annotation:
` triggerHorizontalLine.set(y1: 0.0)
And also I added an extension:
`import SciChart
extension SCIAnnotationLabel {
}`
And then later I add an image
self.triggerLineList[self.selectedTabIndex].annotationLabels.firstObject.addImage(imageName: ImageNames.btnDutyImage)
App is crashing in the library and here is the debug output:
If I add text to the attributed string crash issue is getting fixed but it does not show my image:
It would be great if you could show me how to add image to annotation labels.
Thanks
The text was updated successfully, but these errors were encountered: