Hi all
I want to load an image but whitout displaying it and after loading writing a vertical line at a specific position with preserving old image and after saving the image with this adding to the old image
Thanks in advance
Help with image
Re: Help with image
LoadImage(...)
CopyImage(...)
Start drawing(ImageID(...)
SaveImage(...)
...I don't understand the last part.
CopyImage(...)
Start drawing(ImageID(...)
SaveImage(...)
...I don't understand the last part.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: Help with image
@loulou2522: Do you mean like this? Thanks to jacdelad as well. 
Code: Select all
CreateImage(1,100,100,24,#White) ; White square created, but you can load one.
CopyImage(1,2) ; Copy it.
; Draw a red line down the copy.
StartDrawing(ImageOutput(2))
Line(50,0,1,100,#Red)
StopDrawing()
SaveImage(2,GetTemporaryDirectory()+"image-test.bmp") ; Save copied image with line.
; Do whatever next, because the original image is still just a white square.

