lazy loading of Images
Hello friends,
I need a better way to download multiple list field images, an ImageDownloaderThread with http connection, I've implemented, it works well, but its speed is slow because it downloads images one by one,
How do I upload multiple images at once.
I need to maximize the use of facilities provided by blackberry.
Thanks in advance.
Thank you peter_strange,
Thanks for your quick response,
but I test this using more 5 wires at the same time the speed is increased, but I need to know is possible to download images of standard server.
As we first determine on the components shown and just download images for as android/iphone applications.
Have you considered preloading of these images or maybe by uploading them once and recording on SD card?
I can't store them in the SD card because they are dynamic and large quantity. But thanks for the suggestions.
OK I will optimize my thread to create several instances.
Tags: BlackBerry Developers
Similar Questions
-
Dynamic (lazy) loading the source .as
I know that this is probably a pure AS3 question, but the purpose is related to the PlayBook I ask here.
Is it possible to code ActionScript3 'lazy-load "? (It would be like what you would call a dynamic linking of libraries, rather than statically linking).
In the Python world, the 'import' statements are indeed true statements, transformed the runtime load (and even on the fly compilation if necessary) other modules. You can even put 'import' inside functions, so that they will be run well after the loaded application, even by only if you call a function that is rarely used.
Is this also possible with AS3? (I confess that I have not yet tried to 'import' in a function.) If it is, it works the same way, where any code is not yet loaded from the file SWF (or wherever he may be) until the import statement execution?
A use case would be to allow a very wide application start execution, perhaps display a custom splash screen, as it continues loading the modules "in the background". They have alluded to this in a few videos (first WebWorks webcast?) where they mentioned that the image of custom in the file of your blackberry - splash screen tablet.xml "could even be integrated into the application. That makes no sense to me, unless there is a form any lazy loading were available.
You can use the Modules for this to dyanmically load views, code, services, what ever. Unless she changed, imports are included during the compilation step not the enforcement stage (However, I was wrong once before).
-
I can't load an image into the document class.
Should I load all the images of a class I can't load images in a Document class directly?
With this code, I get a
Error #1009: Cannot access a property or method of a null object reference.
hand / moveright)
hand / doSomething)// Class public class Main extends MovieClip { // Variables private var noLoaded:int; var myText:TextField = new TextField(); private var img1:Bitmap; // Constructor public function Main():void { // Stage set up stage.align=StageAlign.TOP_LEFT; stage.scaleMode=StageScaleMode.NO_SCALE; stage.quality=StageQuality.BEST; stage.displayState=StageDisplayState.NORMAL; stage.frameRate=30; // Init load counter noLoaded=0; // Create a ClassImg6 instance // Add stage listeners stage.addEventListener(Event.ENTER_FRAME,gameLoop,false,0,true); stage.addEventListener(KeyboardEvent.KEY_DOWN,doSomething,false,0,true); myText.text = "The quick brown fox jumps over the lazy dog"; addChild(myText); myText.border = true; myText.wordWrap = true; myText.width = 150; myText.height = 40; myText.x = 200; myText.y = 10; var loader:Loader = new Loader; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); loader.load(new URLRequest("scave4.png")); } private function imageLoaded(event:Event):void { var img1:Bitmap = new Bitmap(event.target.content.bitmapData); //img1.bitmapData = bmd; addChild(img1); img1.y=100; img1.x=100; noLoaded++; } function moveleft() { img1.x-=5; } function moveright() { img1.x+=5; } function moveup() { img1.y-=5; } function movedown() { img1.y+=5; } function doSomething(e:KeyboardEvent):void { if (e.keyCode==37) { moveleft(); }// Left if (e.keyCode==39) { moveright(); trace("rigfht"); }// Right if (e.keyCode==38) {moveup(); }// Left if (e.keyCode==40) { movedown(); }// Right }
img1 inside the function's variable completely different (it belongs to the scope of the function ONLY) the declared as a class variable. Variable class is not instantiated - where the error.
-
Recovery error - loading RAMDISK image
Hello
Please help me!
I need to recover my OS, but when I put the my original recovery portable disk and restart my system when the system check the command "loading RAMDISK image", cannot go to the next step for loading menu root of recovery. Please help me solve this problem.Thank you
Best regards
MacawsHi Aras
Can you please give us more information on your laptop? What is Windows XP Home edition or Vista recovery CD?
-
Satellite M100 - recovery disc reboot after loading ramdisk image
Hello world
I have a Satellite M100 (bought mid-2006), 512 MB RAM, 60 GB HDD, Intel CPU T2050.
I decided to have a cleaning and use the restore disc to return the laptop to factory settings, and then reinstall only what I really wanted.
I had this done yesterday, I had forgotten something, then he ran again about 4 hours later.
The first time that the restore worked, now it reboots once the progress bar reaches full when he says "Loading RAMDISK Image".
After the progress bar reaches full, the mouse pointer appears for a few seconds then restart the computer.Nothing has changed with the hardware or BIOS, and what is on the HD should not have any effect because I am booting from the DVD.
Can someone please help? I am at a loss to explain what happened in this interval of 4 hours.Thank you
Hello!
I put t know which causes the problem too because I m not an expert, but sometimes I can read in the forum, you must delete all partitions before using the recovery disk.
You can do this with the Microsoft disk for example. Just boot from it and delete all partitions. After that, restart and try to use the recovery disc.I put t know if it helps but you can give us feedback. :)
Good bye
-
Satellite M100 recovery disk failing after loading ramdisk image
Hello world
I have a Satellite M100 (bought mid-2006), 512 MB RAM, 60 GB HDD, Intel CPU T2050.
I decided to have a cleaning and use the restore disc to return the laptop to factory settings, and then reinstall only what I really wanted.
I had this done yesterday, I had forgotten something, then he ran again about 4 hours later.
The first time that the restore worked, now it reboots once the progress bar reaches full when he says "Loading RAMDISK Image".
After the progress bar reaches full, the mouse pointer appears for a few seconds then restart the computer.Nothing has changed with the hardware or BIOS, and what is on the HD should not have any effect because I am booting from the DVD.
Can someone please help? I am at a loss to explain what happened in this interval of 4 hours.Thank you
Hello!
I agree with Akuma.
Sometimes I can read here on this problem and I know you should only remove the partition on the HARD disk. Therefore, you can also use a Windows XP CD from Microsoft or the FDISK utility.After you delete all the partition, you should be able to run the recovery disk.
Check it!Good bye
-
How iup can load an image from my photos
the loading of images
Download to the place where? MS - MVP - Elephant Boy computers - don't panic!
-
I don't know why this is happening, but I'm getting random BSOD now and then. I tried to point out my system to see if it generates a BSOD, but multitasking 3d and photoshop programs and what's not stress, then when I least expect, BANG! BSOD.
The last of them, that I had now was in the middle of the night with almost no programs running. The system had worked for some time (one or two days), but nothing was he pointing out at the same time.What I think happened was: our microwave shorted out and caused a fuse to blow. But it was on another grid in our House (I hope I make myself clear, because I'm not used to talk about stuff like this in English!) so it should not affect my computer. But at the same time my microwave said "Thank you for everything!" my computer would BSOD. The thing is that my modem, my switch, my router and my NAS is connected to the electric network and my short circuted of switch. And my computer is connected to the switch cable.
This effect possible that excess tension (or something) has short circuted my switch and 'jumped' power to the switch and on the cable and sending there is a shock to my computer? Or am I just paranoid? Laughing out loudI know that the controllers are pushed to the limit of the memory and therefor tolerate very little when it comes to electricity. I ran MemTest4.00 14 passes but I came with nothing. But memtest that tests memory, not the controllers, right? I am watching a fried motherboard?
I did a windb, but I don't understand what he says. Could someone please translate this for me and give me your opinion?
In addition, when you run windb, it's tell me am I wrong symbols. -What this means, and where can I get the symbols he wants? And what symbols?Microsoft (R) Windows debug 6.12.0002.633 AMD64 Version
Copyright (c) Microsoft Corporation. All rights reserved.Loading dump file [C:\Windows\Minidump\Mini042910-01.dmp]
The mini kernel dump file: only registers and the trace of the stack are availableSymbol search path is: * invalid *.
****************************************************************************
* Loading of the symbol may be unreliable without a symbol search path. *
* Use .symfix to get the debugger to choose a symbol path. *
* After adjusting your path to symbols, use .reload to refresh the locations of symbols. *
****************************************************************************
Executable search path is:
*********************************************************************
* Symbols cannot be loaded because the path is not initialized. *
* *
* The symbol path can be defined: *.
* using the _NT_SYMBOL_PATH environment variable. *
* with the help of thethere when you start the debugger argument. *.
* using the .sympath and .sympath + *.
*********************************************************************
Cannot load the image \SystemRoot\system32\ntoskrnl.exe, 0n2 error Win32
WARNING: Unable to verify timestamp for ntoskrnl.exe
ERROR: Module load completed but symbols can be loaded for ntoskrnl.exe
Windows Server 2008/Windows Vista Kernel Version 6002 (Service Pack2) MP (4 procs) free x 64
Product: WinNt, suite: TerminalServer SingleUserTS
Computer name:
Kernel base = 0xfffff800 '02c4c000 PsLoadedModuleList = 0xfffff800' 02e10dd0
The debugging session: 23:43:16.368 Thursday, April 29, 2010 (UTC + 02:00)
System Uptime: 3 days 5:21:50.657
*********************************************************************
* Symbols cannot be loaded because the path is not initialized. *
* *
* The symbol path can be defined: *.
* using the _NT_SYMBOL_PATH environment variable. *
* with the help of thethere when you start the debugger argument. *.
* using the .sympath and .sympath + *.
*********************************************************************
Cannot load the image \SystemRoot\system32\ntoskrnl.exe, 0n2 error Win32
WARNING: Unable to verify timestamp for ntoskrnl.exe
ERROR: Module load completed but symbols can be loaded for ntoskrnl.exe
Loading the kernel symbols
...............................................................
................................................................
................................................
Loading user symbols
Loading unloaded module list
......
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************Use! analyze - v to obtain detailed debugging information.
Bugcheck A, {fffffa7fffffffea, 2, 0, fffff80002c5a95c}
The kernel symbols are FALSE. Correct symbols to do the analysis.
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************
Probably caused by: ntoskrnl.exe (nt + e95c)Follow-up: MachineOwner
---------0: kd >! analyze - v
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************IRQL_NOT_LESS_OR_EQUAL (a)
An attempt was made to access an address pageable (or completely invalid) to a
application interrupt level (IRQL) that is too high. It is usually
caused by drivers using a wrong address.
If a kernel debugger is available, download the stack trace.
Arguments:
Arg1: fffffa7fffffffea, memory referenced
Arg2: 0000000000000002, IRQL
Arg3: 0000000000000000, bit field:
bit 0: value 0 = read operation, 1 = write operation
bit 3: value 0 = not an enforcement operation, 1 = performance operation (only on chips that support this level of State)
Arg4: fffff80002c5a95c, address memoryDebugging information:
------------------The kernel symbols are FALSE. Correct symbols to do the analysis.
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
Your debugger is not using the appropriate symbols *.
*** ***
In order for this command works correctly, your symbol path *.
should point to .pdb files have the type information complete. ***
*** ***
Some (such as the public OS symbols) .pdb files are not *.
contain the required information. The contact group that *.
you provided with these symbols, if you need this command for *.
work. ***
*** ***
Type referenced: nt! _KPRCB *.
*** ***
*************************************************************************ADDITIONAL_DEBUG_TEXT:
Use '! findthebuild' command to search for the generation of target information.
If the build information is available, run '! findthebuild s; .reload ' to set the symbol path and of loading symbols.MODULE_NAME: nt
FAULTING_MODULE: fffff80002c4c000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 4b7d238f
READ_ADDRESS: could not get nt! MmSpecialPoolStart
Unable to get nt! MmSpecialPoolEnd
Unable to get nt! MmPoolCodeStart
Unable to get nt! MmPoolCodeEnd
fffffa7fffffffeaCURRENT_IRQL: 0
FAULTING_IP:
NT + e95c
fffff800'02c5a95c? ???CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
BUGCHECK_STR: 0XA
LAST_CONTROL_TRANSFER: from fffff80002ca626e to fffff80002ca64d0
STACK_TEXT:
fffffa60 '01bde688 fffff800' 02ca626e: 00000000' 0000000 a fffffa7f ' ffffffea 00000000'00000002 00000000'00000000: nt + 0x5a4d0
fffffa60 '01bde690 00000000' 0000000-a: fffffa7f 'ffffffea 00000000'00000002 00000000'00000000 fffff800' 02c5a95c: nt + 0x5a26e
fffffa60 '01bde698 fffffa7f' ffffffea: 00000000'00000002 00000000'00000000 fffff800 '02c5a95c fffffa60' 04dbf8b0: 0xa
fffffa60 '01bde6a0 00000000' 00000002: 00000000 00000000' fffff800 '02c5a95c fffffa60' 04dbf8b0 00000000' 00000000: 0xfffffa7f'ffffffea
fffffa60'01bde6a8 00000000' 00000000: fffff800 '02c5a95c fffffa60' 04dbf8b0 00000000'00000000 00000000'00000000: 0 x 2STACK_COMMAND: .bugcheck; Ko
FOLLOWUP_IP:
NT + e95c
fffff800'02c5a95c? ???SYMBOL_NAME: nt + e95c
FOLLOWUP_NAME: MachineOwner
Nom_image: ntoskrnl.exe
BUCKET_ID: WRONG_SYMBOLS
Follow-up: MachineOwner
---------I'm grateful for any help I can get in that case.
My system is: AMD 9950BE CPU, motherboard ASUS Crosshair II Formula, 4 x 2 giga OCZ 1066 mhz memory, Vista Ultimate 64 bit, ASUS 295GTX GPU
Postal salvation,
I think you're in luck. It chances are you are one of those rare cases where the BSOD may not be hardware related. In addition, it is actually pretty rare to have so many errors after a sfc... Wow. I think that alone has helped reduce the risk of an another BSOD and was good insurance against other problems.
Do you have a chance to check the hard drive? Now, I would like to check the hard drive to see if there may be potential damage to the hard drive as well to help explain this number of errors (return to the material again).
Here's how to new:
http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors
I think that advice on the anti-virus scanning are also actually still relevant today. I have a scan of one of the two groups below as soon as you can and let us know the result if you can.
virus/malware programs:
Symantec:
Works in Safe Mode and free:
_ http://security.symantec.com/sscv6/WelcomePage.asp
Trend Micro
_ http://housecall.trendmicro.com/
Ad-ware/spyware:
Ad-aware
Spybot Search and Destroy
http://www.safer-networking.org/
* It is an excellent versatile tool as it will both spyware and malware and has also a small footprint.
See you soon,.
Steve <> Microsoft Partner
-
Loading an image works on Z10, but not on the Q5
I use FilePicker to load an image from the library by using the following code
Container { ... ImageView { id: imgView verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center scalingMethod: ScalingMethod.AspectFit maxHeight: 250 minHeight: 100 bottomMargin: 30.0 } } Container { verticalAlignment: VerticalAlignment.Bottom horizontalAlignment: HorizontalAlignment.Fill bottomPadding: 30.0 leftPadding: 30 rightPadding: 30 Button { id: btnSelectImg topPadding: 25 horizontalAlignment: HorizontalAlignment.Fill text: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged onClicked: { console.log("FilePicker") picker.open() } attachedObjects: [ FilePicker { //image picker id: picker property string selectedFile type: FileType.Picture title: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged onFileSelected: { imgView.imageSource = "file://" + selectedFiles[0]; } } ] } } }
Copy the following code to display the image correctly on Z10, but not on Q5 however both running the same version.
No idea what could be the problem?
It turns out that the problem is exactly as described by dbigham, ImageView can handle images up to a certain size depedning on the device.
I added a C++ code to resize the image before feeding it to QML
QML code:
ImageView { id: imgView attachedObjects: [ ImageTracker { id: imgViewTracker onStateChanged: { if (state == ResourceState.Loaded) { imgView.image = imgViewTracker.image console.log("Shared image loaded correctly!") } else if (state == ResourceState.ErrorMemory) { console.log("Shared image load: Error Memory!") } else if (state == ResourceState.ErrorInvalidFormat || state == ResourceState.ErrorNotFound) { console.log("Shared image load: " + state + "!") } } }, FilePicker { //image picker id: picker property string selectedFile type: FileType.Picture title: qsTr("Select Image") + Retranslate.onLocaleOrLanguageChanged onFileSelected: { _app.loadImage(selectedFiles[0],300,200) imgViewTracker.image = _app.image; } } ] }
C++ code:
void ApplicationUI::loadImage(QString strImageFileName, int width, int height) { QImage image; image.load(strImageFileName); image = image.scaled(width, height, Qt::KeepAspectRatioByExpanding); QImage swappedImage = image.rgbSwapped(); if(swappedImage.format() != QImage::Format_RGB32) { swappedImage = swappedImage.convertToFormat(QImage::Format_RGB32); } const bb::ImageData imageData = bb::ImageData::fromPixels(swappedImage.bits(), bb::PixelFormat::RGBX, swappedImage.width(), swappedImage.height(), swappedImage.bytesPerLine()); m_image = bb::cascades::Image(imageData); emit imageChanged(); } QVariant ApplicationUI::image() const { return QVariant::fromValue(m_image); }
C++ header:
class ApplicationUI : public QObject { ... Q_PROPERTY(QVariant image READ image NOTIFY imageChanged) public: ... Q_INVOKABLE void loadImage(QString strImageFileName, int width, int height); signals: ... void imageChanged(); private: ... QVariant image() const; bb::cascades::Image m_image;
-
Load an image rather than another click on... ??
I am trying to load an image on another click on... (to give the effect of the click of..) Anyone has an idea... Thanks in advance...
If you want a simple solution, just two superimposed images
example: 'Volume On' preceding 'Volume Off '.
Event listener MouseEvent.CLICK on 'Volume On' - button (or MouseEvent.MOUSE_DOWN, according to your needs)
and then something like
private var clicked: Boolean
function eventHandler(e:Event):void {}
clicked =! clicked
VolumeOn.alpha = clicked? 0.0: 1.0;
}
-----------------------------------------------------
If you don't want to do this, add a listener for MouseEvent.MOUSE_DOWN, in which the image of the button is defined, and another auditor for MouseEvent.MOUSE_UP, when you set the image to the original
-
How to load an image from a URL cascading
I am trying to load an image from a URL, but it could not be shown. The source code is as below:
ImageView {}
imageSource: "https://developer.blackberry.com/cascades/files/reference/images/image_carl_larsson_1898.png."
}If waterfall doesn't support loading image URL, is there an ordinary or simple to dynamically load the image of the url in C++?
Thank you
Have a look here:
https://github.com/BlackBerry/Cascades-samples/tree/master/TLDR
-
Hey,.
in app midlet:
---------------------------------------------------------
private static final String SVG_URL = "/ sample.svg";
SVGImage image = loadSVGImage (SVG_URL);
---------------------------------------------------------
How can I load svg image in my UiApplication with blackberry api?
THX.
I want to load svg in my simple blackberry app (extends UiApplication).
I know little about midlet (extend MIDlet).
-
How to load an image on the screen?
Purpose: Load an image on the screen.
Error: I can load the button and the label on the screen, except an image.
Question: something wrong in my code? or other parameters must be implemented. (bar_descriptor.xml, ownership of the project, etc.).
Mini code:
#include
Test::test (bb::cascades:Application * app):
QObject (app)
{Container * imageContainer = new Container();
day = ImageView::create ("asset/myDefaultImage.jpg");
"asset:///myDefaultImage.jpg" in case of failure
asset/myDefaultImage.jpg failure
day-> setVisible (true);imageContainer-> add (day);
App-> setScene(Page::create().content(imageContainer));)
}
HPP
The class test: public QObject
{
Q_OBJECTpublic:
Test (bb::cascades:Application * app);
~ Test();private:
ImageView * day;};
Thank you for your attention,
Final Soluton:
Declare assets in the bar - descriptor.xml
assets -
I am trying to load an image from the bb as follows:
displayImage = Bitmap.getBitmapResource (imageName);
Nothing was happening, and I was able to determine that "CAFETERIA: file:///store/samples/pictures/Accelerate.png is not found. The file has been returned from a browser, and I tested the path using:
FileConnection fconn = (FileConnection) Connector.open (imageName);
Since no exception is thrown, I understand that the path is correct. The file also exists, so I can't that assume I have a mistake in implementing in the form of my name of the image. However, after four hours of trying different variations, I must admit defeat. Everyone can't see what I'm doing wrong?
Thank you very much for your help.
Hi tmeerkat,
am loading an image from the server with the following code according to your requirment you can replace the httpconnection fileconnection and try to load the image...
Let us know if it works or not! ....
Here's the code...
package reports; import java.io.IOException; import java.io.InputStream; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import net.rim.device.api.system.Bitmap; import net.rim.device.api.system.EncodedImage; public class UrlToImage { public static Bitmap _bmap; UrlToImage(String url) { HttpConnection connection = null; InputStream inputStream = null; EncodedImage bitmap; byte[] dataArray = null; try { connection = (HttpConnection) Connector.open(url, Connector.READ, true); inputStream = connection.openInputStream(); byte[] responseData = new byte[10000]; int length = 0; StringBuffer rawResponse = new StringBuffer(); while (-1 != (length = inputStream.read(responseData))) { rawResponse.append(new String(responseData, 0, length)); } int responseCode = connection.getResponseCode(); if (responseCode != HttpConnection.HTTP_OK) { throw new IOException("HTTP response code: " + responseCode); } final String result = rawResponse.toString(); dataArray = result.getBytes(); } catch (final Exception ex) { } finally { try { inputStream.close(); inputStream = null; connection.close(); connection = null; } catch(Exception e){} } bitmap = EncodedImage.createEncodedImage(dataArray, 0,dataArray.length); _bmap=bitmap.getBitmap(); } public Bitmap getbitmap() { return _bmap; } }
-
Loading an image in QImage sometimes has the wrong rotation
I am loading an Image into QImage - to say - the camera - but sometimes the Rotation is not correct.
Any way to solve this problem?
Yes, but it is nowhere near as easy as it should be.
Basically, you need to use libexif to read the properties of rotating the image, then use the QTransform to spin to the correct orientation.
This patch usually appears when I did the search for examples on how to do and seems to pretty much cover the process:
0001-fetch-orientation-using-libexif-rotate-thumbnails.patch of the nemo-qml-plugins package
Maybe you are looking for
-
Whenever I close Firefox, my app tabs disappeared on restart. I use Firefox 10 and the problem still persists. Is anyway to fix this?
-
Migrate from Mavericks in El Capitan
I have a MacBook Pro (mid 2010 Mavericks running) and want to do a clean install of El Capitan on it. Would it not be possible to use the Migration Wizard to migrate the backup Mavericks Time Machine (on a NAS) to this new facility? In other words, i
-
Hello! My problem appeared when I tried to update my traditional NOR-DAQ legacy code to DAQmx. I use 2 meter (meter 5 and 7 meter) on PCI-6602, to generate trains of pulses, as well as the lines of e/s digital port 0 (the form lines from 0 to 7). Wha
-
So I have a bunch of configuration files that are stored in a different location from the application, so I created 2 built, one for the .exe and distribution from a single source for the configuration files. The installer works well such things as w
-
Vista Windows Installer error 0 x 80070017
I got two cd packs from microsoft for installing windows vista on my desktop. It was working fine but stopped when he installed a microsoft update automatically. When I went to retrieve it, it gave me an error screen. The installation works ' sometim