How do I display a WebP image in a TImage or just TBitmap? [closed] - delphi

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Delphi-WebP is a project providing Delphi bindings for Google's libWebP.dll, which loads WebP images, but the project provides no Delphi-specific image code.
How can I load a WebP image into a TImage or TBitmap?

You should develop and register TGraphic sub-class, that can load/save WebP format images, just like TPNGImage, TJPEGImage and TGIFImage classes work.
You can get examples of such classes in recent versions of VCL (JPEG and PNG), on Torry.net or with libraries like:
http://melander.dk/delphi/gifimage/
http://www.soft-gems.net/index.php/libs/graphicex-library
http://galfar.vevb.net/imaging/doc/html/faq.html
Just learn how that was implemented in there projects and do the same for your project of WebP support.
PS. You can also derive your class from TBitmap rather than TGraphic - that would be less effective but simplier to do. For example of this approach see http://galfar.vevb.net/wp/projects/jpeg2000-for-pascal/
However that would loose all the WebP-specific information and would be "quick and dirty" hack rather than proper VCL-targeted implementation.

Related

Searching for custom thumbnail viewer component with dynamic layout [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need a control which can display thumbnails similar as seen on the attached image.
It should support:
virtual mode
handle up to 50.000 images
thumbnail groups
scaling
work with Delphi XE3.
If such control does not yet exist I would have to create one from scratch. What is the best strategy for developing a control like this?
See an example of what it should look like
RMKlever has a series of blog-posts and sample code here. that can emulate a wide variety of things, but you would have to make code modifications yourself if you're particular about your desired format.
I believe the control is one of his own called rkView. The demos may require a lot of work to get them working for you, I found working with his stuff was difficult to get started with due to lack of documentation and samples but I eventually figured it all out.

Special Effects algorithm, library and books [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking at The Special Effects In Picasa article.
Where can I find the following:
C/C++ or Java open source library to do it
Good books and/or articles to learn the algorithms how to do it myself
Thanks in advance for your help.
You can achieve most of the effects on that page by color manipulation (white balance) and spatial filtering.
Before you go down the path of using libraries to achieve this, I recommend playing around with image manipulation software like GIMP and trying to replicate the effects. After you're sure you know what you're doing, go ahead and try and code it up.
For libraries, have a look at opencv. There are also Java wrappers for that library if that is your language of choice (Java has its own imaging libraries as well, but I haven't used them). For books, my personal favorite is Gonzalez & Woods -- the first few chapters will get you started. For articles, Google is your friend.

Is there a CKEditor like component for Delphi? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Am searching for a CKEditor like component, preferably for delphi 7.
Any good free ones out there I could try out?
I am not aware of any WYSIWYG free/open-source libraries for Delphi 7. There are some commercial libraries that I have used with great success. TRichView and WPtools are two which are RichText editors which have export to HTML/CSS options.
You can also look at TEmbeddedWB which exposes many more properties than the standard TWebBrowser. Just navigate (or load html), set TEmbeddedWB.DesignMode := true and edit away.
You will find more information in the answers to this similar StackOverflow question:
WYSIWYG HTML Editor Component for Delphi
CKEditor is not part of TWebBrowser in design mode. It is much more: A complex JavaScript application that enables you to edit HTML in WYSIWYG mode. I am currently building some components (DB and standalone) for Delphi using this amazing editor and delphichromiumembedded.

Image library recommendations [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for some image library that can work with multiple formats (jpg,gif,png), and is fast at displaying the images to the screen.
Also, it would be nice if I could specify only part of the image to render to the screen.
In the end I want to have lots of images on the screen that I can pan and zoom about.
This is for a personal project on my ppc powerbook, and I'd prefer if the library be in c++.
FreeImage.
That's for loading.
For displaying, you can either use the FreeImage methods to make a bitmap that you can then display in some control (depending on your UI).
For the real hotness in display, you'll then want to use OpenGL.
Also, in the meantime, I've discovered CImg, which isn't a library so much as a framework for doing lots of common imaging applications and works in C++.
There are also:
Framewave based on AMD Performance Library which provides signal and image processing features
GraphicsMagick multi-threaded derivative from ImageMagick
Check related questions
Fast Cross-Platform C/C++ Image Processing Libraries
Image processing libraries
ImageMagick has libraries in several languages to do what you want.
Imagemagick seems to be the gold standard and is used in all sorts of places. What sort of environment are you working in -- Linux? Windows?

does a good swf to exe wrapper open source exists? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I think the best part of flash is the possibility to create not squared user interfaces, so I like the idea to create desktop apps using flash. I know AIR is for that but it doesn't allow real access to OperatingSystem apis and dlls and the commercial options are kind of difficult to customize.
You can try ScreenweaverHX:
http://haxe.org/com/libs/swhx
It's the Haxe-based successor of the old Screenweaver. However, it's not as simple as the old version used to be. Most likely you need to take a look to the basics of Haxe and Neko, the 2 technologies it's based on.
There's another project on top of SWHX that it's called HippoHX. It aims to "complete" SWHX providing that extra functionality you might miss (simple ActionScript APIs and a GUI). However, it's in its early stages:
http://hippohx.com
DISCLAIMER: I'm the owner of HippoHX, so my point is obviously biased.
As far as I know SWHX is the only Open Source alternative at this point.
Try flajector. it's powerfull converter from flash to exe. You can to develop your application using AIR. And then you can convert it into desktop application .exe

Resources