I have found the answer. I suppose it is not possible.
But if the possibility, that the big image will be loaded is too smal, I can't define the heap size to 1GB. Otherwise, if it will happend, the user will have a problem. To increase the size of the heap manually is not a good solution for the user.
Is there any workaround to do it runtime on OutOfMemory Exception?