Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Algorithmen, Datenstrukturen und Klassendesign (https://www.delphipraxis.net/78-algorithmen-datenstrukturen-und-klassendesign/)
-   -   Where to get help to Native jpg library by SimDesign BV (https://www.delphipraxis.net/211011-where-get-help-native-jpg-library-simdesign-bv.html)

neumimnemecky 13. Jul 2022 15:11

Where to get help to Native jpg library by SimDesign BV
 
Hello.
Where can I get help for Native jpg library by SimDesign BV?
https://www.simdesign.nl/nativejpg.html

I estimate that SimDesign is author of the bpl file named
NativeJpgD7.bpl
and NativeJpgD7.dcp
which is installed on my PC.

I just wanted to open JPG and to draw it to Image and realized that I don't have any help file. Do you have one?

Uwe Raabe 13. Jul 2022 15:33

AW: Where to get help to Native jpg library by SimDesign BV
 
AFAIK, Nils Haeck, the author of that library, is out of business for quite a while due to private reasons. That means you are probably at your own with any questions.

Steku 13. Jul 2022 15:40

AW: Where to get help to Native jpg library by SimDesign BV
 
According to this site it is opensource...
https://github.com/acbarbosa1964/sim...mlib/nativejpg

Maybe you can find some help there...

Greetings...
Steku

neumimnemecky 13. Jul 2022 16:46

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von Steku (Beitrag 1508738)
According to this site it is opensource...
https://github.com/acbarbosa1964/sim...mlib/nativejpg

Maybe you can find some help there...

Greetings...
Steku

Unfortunately I cannot download the directory. No way. I really need it. I tried Github Downloader (GitHubFolderDownloader.exe) but this program returns some exception and so no download is possible. And I tried to download it on
https://download-directory.github.io
but this either does not start to download or on W10 I got message that I have ad blocker on, which on Firefox should be not truth or I cannot really turn it off. And on Chrome I dont know how to do it. Would be here some good soul who would download the folder for me and zip it and upload it e.g. on Google drive?

noisy_master 13. Jul 2022 16:55

AW: Where to get help to Native jpg library by SimDesign BV
 
Then go to the parent directory: https://github.com/acbarbosa1964/simdesign, click on code, click download .zip.... job done ;-)

Have much fun!

neumimnemecky 13. Jul 2022 18:18

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von noisy_master (Beitrag 1508746)
Then go to the parent directory: https://github.com/acbarbosa1964/simdesign, click on code, click download .zip.... job done ;-)

Have much fun!

Thank you. That was easy to download. But not I am confused. If I extracted the files, should the folder date be 2018 or 2022? When I look for the downloaded file with different Windows, should I see it? I am confused if what I have found is the old directory NativeJPG123 or is it new one. Because I think the extracted folder name was SimDesign.

To me it seems like the library requires
NativeJpg133\simlib\nativejpg\demos\viewer32\Nativ eJpg32.pas

In this file I see some pre made classes with comments:
Code:
  // Use Performance to set the performance of the jpeg image when reading, that is,
  // for decompressing files. This property is not used for writing out files.
  // With jpBestSpeed, the DCT decompressing process uses a faster but less accurate method.
  // When loading half, quarter or 1/8 size, this performance setting is not used.
  TsdJpegPerformance = (
    jpBestQuality,
    jpBestSpeed
  );

  // TsdJpegGraphic32 is a Delphi class, which can be used
  // to load Jpeg files into TBitmap32. It relays the Jpeg functionality in the non-Windows
  // TsdJpegImage class to this TBitmap32 component.
Plus, in file simlib\bitmap\sdBitmapResize.pas some useful resize function.

File NativeJpg133\simlib\nativejpg\demos\viewer32\viewe r32Main.pas seems to include all interesting edit functions like rotation and/or brightness/contract correction. Very useful.

KodeZwerg 13. Jul 2022 18:43

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von neumimnemecky (Beitrag 1508749)
should the folder date be 2018 or 2022?

Actually the Folder date is 2015, it can be that the Archiver Tool you use does not set Date/Time on Folders...

neumimnemecky 13. Jul 2022 19:45

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von KodeZwerg (Beitrag 1508750)
Zitat:

Zitat von neumimnemecky (Beitrag 1508749)
should the folder date be 2018 or 2022?

Actually the Folder date is 2015, it can be that the Archiver Tool you use does not set Date/Time on Folders...

So I have mistaken the files and folders. I have extracted the zip onto different disk/partition with similar name :shock: Hence different folder names and different date. So the date 2018 was date when I installed the library firstly on my disk. But when I tried to use it, it wanted nativexml. Probably I was not able to use back it in 2018 without this native xml library.

neumimnemecky 14. Jul 2022 09:07

AW: Where to get help to Native jpg library by SimDesign BV
 
I have problem to compile the package. It requires visualclx - but I have Delphi 7 installed - should not be problem to find it. What can I do?

KodeZwerg 14. Jul 2022 09:39

AW: Where to get help to Native jpg library by SimDesign BV
 
Code:
package NativeJpgD7;

{$R *.res}
{$ALIGN 8}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DESCRIPTION 'NativeJpg - by SimDesign BV'}
{$IMPLICITBUILD ON}

requires
  rtl,
  vcl,
//  visualclx,
  vcljpg;

contains
  NativeJpg in '..\NativeJpg.pas',
  sdJpegBitstream in '..\sdJpegBitstream.pas',
  sdJpegDCT in '..\sdJpegDCT.pas',
  sdJpegCoder in '..\sdJpegCoder.pas',
  sdJpegHuffman in '..\sdJpegHuffman.pas',
  sdJpegLossless in '..\sdJpegLossless.pas',
  sdJpegMarkers in '..\sdJpegMarkers.pas',
  sdJpegTypes in '..\sdJpegTypes.pas',
  sdFileList in '..\..\disk\sdFileList.pas',
  sdSortedLists in '..\..\general\sdSortedLists.pas',
  sdBitmapResize in '..\..\bitmap\sdBitmapResize.pas',
  sdMapIterator in '..\..\bitmap\sdMapIterator.pas',
  sdColorTransforms in '..\..\color\sdColorTransforms.pas',
  sdVirtualScrollbox in '..\..\virtualscrollbox\sdVirtualScrollbox.pas',
  sdDebug in '..\..\general\sdDebug.pas',
  sdJpegImage in '..\sdJpegImage.pas',
  sdBitmapConversionWin in '..\..\bitmap\sdBitmapConversionWin.pas',
  sdGraphicTypes in '..\..\bitmap\sdGraphicTypes.pas',
  sdStreams in '..\..\general\sdStreams.pas';

end.
Try this. But actually "VisualCLX" is a basic package within Delphi 7.
The more smart way for you would be to register to Embarcadero and obtain a one year free license for the Community Edition which got all you needed out-of-the-box.

neumimnemecky 14. Jul 2022 09:56

AW: Where to get help to Native jpg library by SimDesign BV
 
Now, this is odd. It prints:
Cannot find dcu file for
sdStreams in '..\..\general\sdStreams.pas';

But dir. general (simdesign-master\simlib\general) does not contain any packages (.dpk) : How could I compile it? Should I create my own package? I can do it. I can push the pas files to package, but it will print this warning:

The following changes are neccessary to make this package compatible with other installed packages:

Add vcl.
vcl contains implicit unit(s) Graphics, Consts, Forms, Printers, StdActns, Clipbrd, Controls, Themes, ComCtrls, ComStrs, ExtActns, ActnList, Menus, ImgList, StdCtrls, Dialogs, ExtCtrls, ExtDlgs, Buttons, ToolWin, ListActns, WinHelpViewer.

Add NativeJpgD7.
NativeJpgD7 contains implicit unit(s) sdDebug.

Remove sdFileList, sdSortedLists, sdStreams.
Unit(s) sdFileList, sdSortedLists, sdStreams were found in required package NativeJpgD7
.


I don't really understand it much. I still have the
"NativeJpgD7.bpl~" old file from 2018 and NativeJpgD7.bpl from 13th 07 2022 21:32 (compiled yesterday, but I was so tired that I already have no idea what I was doing at that late time).

KodeZwerg 14. Jul 2022 10:08

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von neumimnemecky (Beitrag 1508775)
Cannot find dcu file for sdStreams in '..\..\general\sdStreams.pas';

Easy to fix, press "Build" instead of "Compile" or "Install" or whatever you click there, when it can not compile than you get next error message.

Sherlock 14. Jul 2022 10:25

AW: Where to get help to Native jpg library by SimDesign BV
 
May I suggest to move/restart this discussion to our english speaking sibling site https://en.delphipraxis.net where a lot of english speakers might be able to help with this issue?

Sherlock

neumimnemecky 14. Jul 2022 10:27

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von KodeZwerg (Beitrag 1508776)
Zitat:

Zitat von neumimnemecky (Beitrag 1508775)
Cannot find dcu file for sdStreams in '..\..\general\sdStreams.pas';

Easy to fix, press "Build" instead of "Compile" or "Install" or whatever you click there, when it can not compile than you get next error message.

Do you mean to build the NativeJpgD7.dpk?
It print error sdStringTable.dcu not found

Or do you mean to build my own package for general folder?

KodeZwerg 14. Jul 2022 10:47

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von neumimnemecky (Beitrag 1508779)
Zitat:

Zitat von KodeZwerg (Beitrag 1508776)
Zitat:

Zitat von neumimnemecky (Beitrag 1508775)
Cannot find dcu file for sdStreams in '..\..\general\sdStreams.pas';

Easy to fix, press "Build" instead of "Compile" or "Install" or whatever you click there, when it can not compile than you get next error message.

Do you mean to build the NativeJpgD7.dpk?
It print error sdStringTable.dcu not found

Or do you mean to build my own package for general folder?

I do mean it like i expressed myself, whatever button/menu you click to get error "Cannot find dcu", use "build" button/menu instead. I am not talking about anything else beside those words that i have written :P
I am sorry if this is not clarify enough.

Zitat:

Zitat von Sherlock (Beitrag 1508778)
May I suggest to move/restart this discussion to our english speaking sibling site https://en.delphipraxis.net where a lot of english speakers might be able to help with this issue?

Yeah, that's a good choice!


Zitat:

Do you mean to build the NativeJpgD7.dpk?
That is what i am thinking all the time we are talking about lol

neumimnemecky 14. Jul 2022 11:05

AW: Where to get help to Native jpg library by SimDesign BV
 
Zitat:

Zitat von Sherlock (Beitrag 1508778)
May I suggest to move/restart this discussion to our english speaking sibling site https://en.delphipraxis.net where a lot of english speakers might be able to help with this issue?

Sherlock

I hope we can finish it here. In the case that here come no responses here, I can move there.

neumimnemecky 14. Jul 2022 11:07

AW: Where to get help to Native jpg library by SimDesign BV
 
So in sdStringTable
line 75:
TsdStringTable = class(TsdDebugComponent)
error "undeclared identifier TsdDebugComponent"

This component is in sdDubug, which should be included as on line 46 there is the uses clause with sdDebug unit:
uses
Classes, SysUtils, Contnrs, sdDebug;

sdDebug contains it on line 86.

neumimnemecky 14. Jul 2022 19:17

AW: Where to get help to Native jpg library by SimDesign BV
 
Now, after creating new package I am getting this error:

[Error] Never-build package 'NativeJpgD7_repaired_next_try' requires always-build package 'GR32_D7'

Code:
requires
  rtl,
  vcl,
  vcljpg,
  GR32_D7; // compiler added this automatically
Ich bin fertig, so glücklich.

https://en.delphipraxis.net/uploads/...e453eeca09.png


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz