-
Notifications
You must be signed in to change notification settings - Fork 9
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
Has it ever worked with anyone..? for me its never.? #15
Comments
https://github.com/bradmartin/nativescript-image-filters/blob/master/demo/app/main-view-model.ts#L30 Haven't updated the demo in a while but it was working and the code above should still be valid. If you can't run the demo, I'll try to update it and confirm behavior still functions next week. |
Really thanks for your response. I've tried these many options to run this filter plugin function. Basically I want to do this.
public effectOne(imageAsset) {
|
Getting this error. |
I've gone ahead and updated the demo app to use the latest NS. I've also updated the plugin to use the latest NS core (@nativescript/core) package and bumped the major to avoid any issues with that. So if you're on the latest NS, using version |
As for your issue, the methods of the plugin are expecting a NS So something like
|
The last days I tried a lot with your filters because they would be really nice. However, I did not get it running and I think that the basic problem lies in the image treatment of Nativescript and their rapid changes. Difficult to google, difficult to find solutions. Setting ImageSource is not suitable for your filters and setting the src ... I did not really manage, even when trying your way via Frame.Topmost .... Nativescript 8.0.2 ... |
@SnowYeti - sorry you're having trouble with it. I've just updated the demo to the latest and it's all working fine. Do you perhaps have some code or a specific scenario you're having trouble with? |
@bradmartin const imgF = ImageSource.fromFileSync(path); And then apply the filters like eg: In either ways I always got the null pointer exception from Java. |
I've added both of those you mentioned to the demo and they seem to work fine. https://github.com/bradmartin/nativescript-image-filters/blob/master/demo/app/main-view-model.ts#L126 and the method after it gets the icon from the app_resources using If you're getting Null Pointer Exception, there is prob a bit more info in the stack trace you have when you encounter it to diagnose what is happening. However, are you certain the file path you are using is correct, is the image actually bundled in the app? That's the first place to start. |
Could anyone explain, how it works in nativescript angular. I don't know if it uses imagesource or imageasset. totally confused..?
The text was updated successfully, but these errors were encountered: