Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

FPImage docs?

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

matt shaffer

Well, I am still new to pascal, and the FPImage units caught my eye. I need some examples or docs on how to use these;
http://wiki.lazarus.freepascal.org/Developing_with_Graphics is not good enough for my purposes. I want to load a file and draw another image also loaded from a file onto it, then save it.
What I've tried:
, as a parameter it wants a TFPCustomImage,
which I assume means I cannot use TFPMemoryImage.

img := TFPMemoryImage.Create(10,10);
img.LoadFromFile(filelist[i]);
imgWM := TFPCustomImage.Create(10,10);
imgWM.loadfromfile(txtFName.text);
ImgCanvas := TFPImageCanvas.create(img);
ImgCanvas.Draw(0,0,imgWM);

Problem: How can I have the size of img/imgWM set to the image file's size? I wanted to do
img := TFPMemoryImage.Create;
Because it seems to be listed (by listed I mean typing a period after img and waiting for the little box of procedures etc to popup), but the compiler yells at me for not including parameters. (There's 2 listed.. one with parameters, one without; Using lazarus rev. 20212)

[Random]
Don't forget to vote for lazarus on sourceforge ;) -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/64eab9c4/attachment.html>

Reply by email

matt shaffer
to Vincent Snijders

I don't see how putting it in the footer would be offensive, I like the idea myself.

On Mon, Jun 29, 2009 at 2:08 PM, Vincent Snijders <

Show quoted text 18 lines
wrote: matt shaffer schreef: > Don't forget to vote for lazarus on sourceforge ;) > Maybe the link to the vote should be part of the list footer, or would that be too offensive? Vincent -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090629/78a921d6/attachment.html>

Reply by email

Graeme Geldenhuys
to Vincent Snijders: Maybe the link to the vote should be part of the list footer, or would that be too…
Vincent Snijders wrote
Maybe the link to the vote should be part of the list footer, or would that be too offensive?

I'm OK with adding it. We may promote Lazarus. While you are there, remove the "--" which doesn't actually work, because it should be "-- " (note the space) for footers to be recognized.

Also when HTML formatted mail is sent, it comes through as as attachment
- is this correct behaviour?

Regards,
- Graeme -

_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email