Page 2 of 5

Re: Pure_autoPaint

Posted: Sat Feb 16, 2013 6:37 pm
by VB6_to_PBx
dobro,

much better picture effects than most "professional" similar softwares on the Internet !

thank you very much for sharing
and all the very quick updating and adding of additional features !!!

thanks

Re: Pure_autoPaint

Posted: Sat Feb 16, 2013 7:16 pm
by dobro
thanks :)

changing the code page 1
arrangement of gadgets interface
Save images in their original resolutions

Re: Pure_autoPaint

Posted: Sun Feb 17, 2013 5:18 pm
by dobro
I just changed the source code ... brace yourself: lol:

Now after you have loaded an image
before you can start painting as Automatic as before, having chosen a Style ...

and .... You can also After or Before, draw with the mouse directly on the screen: D
it will draw in the Current Style :) (we change style Drawing :))

I have not yet determined the method on the size and number of each brush stroke a click on the screen :)

does not change anything regarding the structure of the code on Styles, only the brush style to add a condition seen

Code: Select all

	if flag_bouton_on=0
				x_source=Random(largeur-1) ; lit une couleur de l'image d'origine
				y_source=Random(hauteur-1)
				Else
				x_source=xx_mouse  ; ici ajout du mode manuel
				y_source=yy_mouse
endif
I also added a style "Pop_Art"

Image

:)

Re: Pure_autoPaint

Posted: Sun Feb 17, 2013 6:18 pm
by dobro
Code updated ;)

Re: Pure_autoPaint

Posted: Sun Feb 17, 2013 11:32 pm
by dobro
Code updated ..

@Fred et l'équipe de dévellopeur de Purebasic :

le redimenssionnement automatique de l'ecran , pose un probleme lorsqu'on utilise la souris ....

en effet , l'ecran et son contenu se redimenssione , mais les coordonnées souris eux restent constant
du coup on observe un décalage entre le curseur de la souris , et le dessin generé ...
sur mon prg , ici présent .. c'est facile a vérifier (en remettant le mode Redimention auto )...

ya t'il une solution ? ... pas sur ...
@ Fred and the team of dévellopeur Purebasic:

redimenssionnement the automatic screen poses a problem when using the mouse ....

Indeed, the screen and its contents redimenssione, but they remain constant mouse coordinates
suddenly there is a discrepancy between the mouse and the generated drawing ...
on my prg here now .. it is easy to verify (by giving Redimention auto mode) ...

is there a solution? ... not ...

Re: Pure_autoPaint

Posted: Tue Feb 19, 2013 9:37 am
by dobro
code being too big to fit on the forum
I put a link to the executable and the source ....
(page 1 of this topic)

Adding a semi-automatic Mode:
we can define the number of brush stroke and their size
so use a style more in the same composition :)

Re: Pure_autoPaint

Posted: Tue Feb 19, 2013 10:39 am
by dobro
Code updated ...

the code will be updated regularly
just check it out here:
http://michel.dobro.free.fr/download.php?view.40


monitoring the progress of the code is on the French Forum
http://www.purebasic.fr/french/viewtopi ... 46#p151046

Re: Pure_autoPaint

Posted: Wed Feb 20, 2013 7:22 pm
by dobro
http://michel.dobro.free.fr/download.php?view.4

New version that supports Graphic Tablets Based on DLL WINTAB.dll ( the Wacom among others ....)
if you have a tablet can you tell me if it works for you ?

activation of the tablet is that the approach of the Tablet Pencil :)
otherwise the mouse mode :)

I left a code of Danilo, I slightly adapted for the Canvas (2 hours of trouble!)

corrected a few small imperfections calibrations :)

the tablet is recognized and the size of the Brush reacts to stylus pressure :) (well on my Wacom Bamboo)

:)



ps :
I found during my tests, a functionality that interresting prg


you load an image, you start to draw with a Style
you load another image, and you draw , with a same style or another
it allows for image overlays in pictures
all that can change pictures , as many times, as you want : D

then I "embedded" part of a landscape being "cross-table" on the Dog Cederavic
Image

I amazes me alone :lol: :)

Re: Pure_autoPaint

Posted: Thu Feb 21, 2013 3:51 pm
by dobro
I just put online a new version :)

http://michel.dobro.free.fr/download.php?view.40


we will be able to easily make brushes :)

look (and try) mode Brush1

now the prg file will be accompanied by a Folder "Brush"
PNG images (with transparent background) will be created as you want
and be used to paint :)

for example I made a brush like this:

Image :)

the only requirement is to make brushes with
color as you Want :)
transparent background
and 128x128 :)
sample image

Image

So it is now possible to create full form of brushes
then we can easily create the "Styles" using a brush or more of these "image" :)
it multiplies the possibilities ... :)


ps: I disabled the brush size depending on the pen pressure .. it was too much for me to master galley
it is to the line 502 ...
Have Fun :)

Re: Pure_autoPaint

Posted: Thu Feb 21, 2013 4:50 pm
by kvitaliy
dobro wrote:I just put online a new version :)

http://michel.dobro.free.fr/download.php?view.40
The code good, but is an error in an executable file.
Not all have such folder:
LoadImage(#brosse_1,"E:\Dobro\PureBasic\dobro\Dobro_creation\Pure_Autopaint\Brush\brosse_1.png")

Re: Pure_autoPaint

Posted: Thu Feb 21, 2013 6:12 pm
by dobro
Arf ! Sorry :lol:

[Reedit]

Archiv Fixed ... ?? is good now ? :)

Re: Pure_autoPaint

Posted: Fri Feb 22, 2013 5:24 am
by kvitaliy
dobro wrote:is good now ? :)
Ok! :wink:

Re: Pure_autoPaint

Posted: Fri Feb 22, 2013 1:08 pm
by dobro
nouvelle Version
http://michel.dobro.free.fr/download.php?view.40
I fixed some bugs and especially the use of icons for selecting a Style :)


Folder "Icone_brush" appears, it only serves to compile .
for the inclusion of the list of icons Styles ...

Well, I'm going to Fabricate other "Style / Brush" :)

I did a test, quickly, using one brush ( Image and then with my tablet, Style "Reel" (Real) in small touches to make up coherence" :)

Original Photo
Image
Image

Do not say you are a real oil painting?? :D

Re: Pure_autoPaint

Posted: Sat Feb 23, 2013 2:31 pm
by dobro
the techechargement is Reopened :)
http://michel.dobro.free.fr/download.php?view.40

Pure_Autopaint renamed
call it now "Barbouille"

Adding a Logo "Barbouille": D for prg
Image

Adding and taking into account the arrow keys up / down to change size
Adding a small image that can know about that "image on it works :)

Addition of 16 Brushes

I Mode Added Edge Cederavic in the list of Styles
because it is a mode that allows you to "bump" the contours of the original image
and therefore able to give coherence to the Canvas :)

nothing prevents course to continue to draw on the canvas, after one or more Application contour :)

I recalibrated the Automatic Brushes :)
Here is an example obtained in Automatic mode
Thank you again Cederavic has with his routine Edge, it saves a lot the situation :)


Image


another little test :)

automatic mode with the style brush 12 and the end, the application of 4x Edge Cederavic
Image

:)

Re: Pure_autoPaint

Posted: Sun Feb 24, 2013 9:53 am
by kvitaliy
It's cool!