|
|
 |
dennischeung$ dennische... 03/21/2007 :: 11:00
Anonyme
| | Hi,
I don't know why below coding works fine on my computer but showing black screen in GdViewer on production environment. Any clue? Thanks.
(Note: I use LoadFromString instead of LoadFromFile to avoid too many disk io for performance issue)
Regards/Dennis
================================== oGdPicture.LoadFromFile(szImageFile) szImageString = oGdPicture.SaveAsString("tif", 2) oGdPicture.CloseNativeImage() oGdPicture.LoadFromString(szImageString) oGdViewer.DisplayFromImageRef(oGdPicture.GetNativeImage())
| |
 |
Loïc$2006306 Loïc 03/21/2007 » 11:19
Registered
| | Hi,
I need some precisions:
1) What are the programing language used ? 2) What is the version of gdpicturepro used into the production computers ? 3) What is the return of all the methods ? (SaveAsString, LoadFromString, DisplayFromImageRef) 4) What is the operating system of your production computers ? 5) What is the length of the szImageString string ?
Thanks,
Loïc
Edited by @lcarrere | |
 |
dennischeung$ dennische... 03/22/2007 :: 03:45
Anonyme
| | 1) What are the programing language used ? **VB .NET 2) What is the version of gdpicturepro used into the production computers ? **gdpicturepro ver1.84 & gdviewer ver1.5 3) What is the return of all the methods ? (SaveAsString, LoadFromString, DisplayFromImageRef) **since it works fine on development pc, i don't capture any returns. 4) What is the operating system of your production computers ? **XP Pro 5) What is the length of the szImageString string ? **variable length in VB .NET
| |
 |
dennischeung$ dennische... 03/22/2007 :: 12:06
Anonyme
| | Hi Loïc,
And, i also find a performance issue upon calling DisplayFromImageRef in above coding. My program works with tif files (~3xxKB each, in local harddisk) and it takes a couple of seconds on this line of code with production machines.
Again, this line of code works well in my development pc. (most of the production machines are better than mine )
Did i do something wrong? Thanks.
Regards/Dennis
| |
 |
Loïc$2006306 Loïc 03/22/2007 :: 14:10
Registered
| | Hi Dennis,
It will be hard for me to help you if you can't give me answers to all my questions.
However you can try to do that:
1) update your gdpicture component with the last pre-release: http://www.gdpicture.com/ressources/betas/
2) Try another else your code.
If that still does not works use this code instead:
Dim arBytes() As Byte oGdPicture.LoadFromFileszImageFile) oGdPicture.SaveAsByteArray(arBytes, 0, "tif", 2) oGdPicture.CloseNativeImage() oGdPicture.LoadFromByteArray(arBytes) oGdViewer.DisplayFromImageRef(oGdPicture.GetNativeImage()) Erase arBytes
Best regards,
Loïc Carrère | |
 |
dennischeung$ dennische... 03/23/2007 :: 02:28
Anonyme
| | Thanks, Loïc.
How about the performance issue? Would like to make it runs faster when loading an image. Any advice to speed it up?
Regards/Dennis
| |
 |
Loïc$2006306 Loïc 03/23/2007 :: 15:00
Registered
| | Hi,
I think you have production pc which have worse graphics cards than your development pc.
The speed of this methods depends of:
- The graphic card - The operating system - Memory available
However, you can try to change the InterpolationMode propertie value.
Best regards,
Loïc | |