Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: Parameter passing oddities
« Last post by Nitorami on Today at 09:59:28 am »
When I call your example as "add (C1,C2,C1)", then C1 will be changed. The compiler cannot detect that, it does not know that two parameters are at the same address.

So I do change a const parameter.

The wiki says on constref (https://wiki.freepascal.org/Constref): "not only the parameter, but also the variable (...) passed by the caller (...) must not be changed until the call with the constref parameter has returned."

So - is that legal or not ?
2
General / Re: splitting an image
« Last post by TRon on Today at 09:40:23 am »
@madref:
1. Do you write the text yourself with code into the image ?
2. Are you sure you want to have two separate TImage components in return ? (resulting in a total of 3 TImage components on your form)
3. in case 2 applies do these two other TImage components already exist
4. in case answer to 2 is no then where do you want the resulting "splitted" images to be stored ?
5. Is the splitting process itself a manual step, e.g. you have to click a button or should it be done when something specific happens on the form ?
3
General / Re: splitting an image
« Last post by paule32 on Today at 09:23:22 am »
I don't write anything about "saving".

You maybe over read it:
the principle is:
- load a file (that can be done with "LoadFromFile")
- and BitBlt (copy a view port of the memory region of the image) to a destination Canvas

This Canvas can be any "displayable" device (screen, printer, or memory)
4
General / Re: splitting an image
« Last post by madref on Today at 09:18:14 am »
I don't need to save or do anything to the image.
I just want to split the image in two parts.
The image contains text (like "Text Example") that I want to split
And I want to display it as:


Text
Example
5
General / Re: splitting an image
« Last post by paule32 on Today at 09:13:32 am »
- you can use multiple images, that you can "TImage.LoadFromFile"
=> Then you have more loading time
=> Then you can store the images on Form's - but they overlapped eventually
=> Then you can exchange the images from each load time/update of your software
=> Then you can load/un-load the images which means, allocate/de-allocate memory

- you can use one or multiple tile images, load it per LoadFromFile, store it into a background Canvas/Handle, and BitBlt (copy) the background data into the foreground (enabled/viewing view port on TForm or other TComponent)
=> Then you can gzip/zlib (compress) these file/s to save storage space
=> Then you can copy in-Memory data into background Canvas/foreground Canvas in time faster than if you use TImage.LoadFromFile
=> Then you need a little bit lesser memory
=> Then you can hold one copy of the image in the memory
=> Eventually, you need more memory.

On tile images, you have to know the exact position of the tiles - when not, then you have eventually image garbage on the device where you display/print the image's/tile's.
6
General / Re: splitting an image
« Last post by madref on Today at 08:55:22 am »
Can you explain it a bit more?
Because I don't understand what you mean
7
General / Re: how to tweek fpmake to compile RTL?
« Last post by paule32 on Today at 08:23:49 am »
the little creditable "copyright notice"  ;D
yahyah...  I know why.
8
General / Re: splitting an image
« Last post by paule32 on Today at 08:20:33 am »
simply:
- use two separate TImage's like a map, or:
- use a tile map (a single file, with tiles in square with same width/height

good luck
9
LCL / Re: Why isn't TTIRadioGroup's AutoSize property published?
« Last post by egsuh on Today at 08:09:35 am »
Quote
Looking at the code, it seems you can publish that property and recompile the IDE.

Haha no, I can set it within code, and that's good enough.
10
General / splitting an image
« Last post by madref on Today at 08:05:04 am »
I have an image (TImage) that I want to split Ito two images so that I can put them under each other.
The Image is 365 pixel wide and I want to split into 165 and 200 pixels


How can I do that?
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018