1/5/2024 0 Comments Gideros get logical dimensionsMedia:getWidth() - returns the width of the image Media:getPath() - returns the path that was used to create object Media.new(width, height) - create blank Media object with provided dimensions Media.new(path) - create new Media object with provided image ![]() Mediamanager:deleteFile(path) - deletes file at provided path Įvent.MEDIA_RECEIVE -user selected imageĮvent.MEDIA_CANCEL -user canceled media input Įvent.VIDEO_COMPLETE -user completed watching video Mediamanager:playVideo(path, force) - play viedo file in given path (bool force to watch till the end, or quit playing on tap) Mediamanager:postPicture(path) - add picture from given path to gallery (or open save file dialog on pc) Mediamanager:takeScreenshot() - capture the screenshot of the app Mediamanager:getPicture() - allow user to select picture from gallery Mediamanager:takePicture() - allow user to provide picture input from camera ![]() Mediamanager:isCameraAvailable() - returns true is you can get picture from camera The dimensions when resizing are all actual dimensions of the image and not logical dimensions in your project GetPicture method gives you copies of the image, so you won't harm the original Inside EAGLView.m method - (id)initWithFrame:(CGRect)rect Ĭopy contents of Plugins directory into your Gideros installation Plugins directory īy resizing image you will actually resize the file of the image, so there is no going back to upscale it later Inside public void onDrawFrame(GL10 gl) of class GiderosRenderer Ĭopy contents of Plugins directory into your exported project's Plugins directory Īdd copied files to your Xcode project (Check create groups for added folders) Ĭom.GMedia.onDraw(gl)If Camera support is only optional, add this to your manifest: If your app will require Camera support add this to your manifest:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |