Jump to content

Red ochre

Members
  • Posts

    3,018
  • Joined

  • Last visited

  • Days Won

    125

Everything posted by Red ochre

  1. Hello Reed, It shows up when you go to save and select the .ico file type. Hope that helps.
  2. 'Autobisection' - I love this one - probably my favourite of yours so far! If Mr. Barbeque gives your tools back you could make a real light sculpture like that - expanded metal and coloured lights - make a fortune in the right gallery! Keep up the good work and cheers for noticing my new sig!
  3. Ha Ha - beat me to it! I was revamping one I started ages ago, but didn't finish. It's got a working angle slider and an ellipse/squirkle option ! - but still work in progress . Oh well! ( I can PM you my source if you're interested in incorperating the angle in yours)
  4. I just click in the size window and enter the size - seems to work for me - but I've probably mis- understood as usual!
  5. Hello LizzyRock, You might try my 'Highlight' plugin http://forums.getpaint.net/index.php?/topic/21835-highlight-now-in-red-ochre-plugin-pack/
  6. Hello Djisves, Blackpenny and Nitenurse. Many thanks for replying - it's very appreciated I'm glad you're finding it useful. Writing plugins is addictive you know!
  7. Perhaps 'thread' is the wrong word - I meant section as in 'pictorium' or 'developers central'. 1. Genuine but often asked questions would still be answered if the user still can't see the pinned FAQs. 2. Spam posters and bots could have their accounts deleted. 3. Interesting/unusual questions or other posts could be moved to more relevant threads and the new user promoted to full member. Only a thought ( I don't think most newbies would be offended and post 10 times if they were getting their questions answered).
  8. @ EER - I'm amazed at your patience! - same goes for the other mods and regular question answerers. Just wondering if new forum joiners (who currently have to post 10 times before becoming a member), should be confined to one 'newbie' thread? - This could also serve as place to catch spam. It could have stock answers pinned to the top:- how do I select something, how do I make the background transparent - png/jpg, installing plugins etc etc. If the newbie poster asks an interesting question, posts a brilliant image or plugin and appears to have read the rules, then the moderator could promote the new user and move the post to the relevant thread. Only an idea - keep up the good work! Off topic: Personally I found the program extremely easy to get started with, due to Rick's clear design, especially compared to Gimp. I don't understand how some people can do a difficult thing (registering and learning how to post on the forum) only to ask a very simple question (which could be answered by looking through the forum or just exploring the program)? Still, I often take the most difficult route myself!
  9. Thanks Barbieq25 and Nitenurse79 - hope you're both well and happy
  10. I've added 'Overblur' and 'recolour choice' to the pack. . I'll tidy up the links in the first post when I work out what I'm doing! 9 days later and I've finally worked out how to put the right name on a link! - It's the little switch icon in the edit window - then edit the html - I'm sure there must be an easier way.
  11. Overblur Now in my plugin pack here: Red ochre plugin pack This is a very simple plugin. It compares the blurred picture to the original and lets you choose how much of that change to apply. Results range from an odd effect useful for making textures through to a passable sharpen effect. And here is the codelab code:
  12. Recolour choice 8 differnt ways to select and replace a colour. There are many plugins allowing selection and replacement of colours and there are the built in tools, magic wand and recolor. These are all good and useful in different situations. However, I was working on a picture and found I couldn't select the region I wanted, so I decided to experiment with different algorithms. I have also included a 'blend' slider to soften the replaced colour. If you duplicate the layer first and select the 'keep unaltered selected' checkbox, you will be left with the selected region as an object on its own layer for further processing. Tip: It's easiest to use the ink dropper tool to select the desired detection colour before running the plugin. It is in my plugin pack here: Red ochre plugin pack Here's the codelab code if you want to play with the algorithms! This thread is relevant too http://forums.getpai...or-bucket-tool/ Hidden Content: /* =================================================== */ /* */ /* recolour choice */ /* (c) 2012 Red Ochre */ /* */ /* Description: colour replacement with more options */ /* */ /* ========================================== ======== */ // Name: recolour choice // Author: Red ochre (John Robbins) // Submenu: Color // URL: http://www.getpaint.net/redirect/plugins.html // Title: recolour choice April 2012 Red Ochre #region UICode byte Amount1 = 0; // colour detection method by:|H,S & V|B,G & R|Euclidean distance|tone (B + G + R) only|tone (HSV Value)only|Saturation only|Hue only|transparency value only (over-rides checkbox) ColorBgra Amount2 = ColorBgra.FromBgr(120,124,172); // colour to detect bool Amount3 = true; // [0,1] include transparency (alpha) in detection int Amount4 = 255; // [0,255] detection transparency double Amount5 = 10; // [0,100] detection tolerance % ColorBgra Amount6 = ColorBgra.FromBgr(255,0,0); // replacement colour int Amount7 = 255; // [0,255] replacement transparency double Amount8 = 0; // [0,100] blend edges bool Amount9 = false; // [0,1] keep unaltered detected only #endregion void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra cp; int B, G, R,A,lum, B1,G1,R1,A1,lum1, B2,G2,R2,A2; double t1,t1b,t1p,t1d,t1e,t1l, t2, euc,euc1; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) {cp = src[x,y];// cp = current pixel = set to source pixel B = cp.B;G = cp.G;R = cp.R;A = cp.A;// source pixel B1 = (int)Amount2.B;G1 = (int)Amount2.G;R1 = (int)Amount2.R;// colour to detect A1 = Amount4; // detection transparency from slider - not from primary t1 = Amount5/100; //detection tolerance t1b = t1 * 255;// t1 byte, from 0 to 255 but a double for easier maths! t1p = t1 * 100;// t1 percent, from 0 to 100 t1d = t1 * 360;// t1 degrees, from 0 to 360 t1e = t1 * 441.67;// Euclidean range t1l = t1 * 765;// tone/ lum range (255 * 3) t2 = Amount8/100; //blend tolerance B2 = (int)Amount6.B;G2 = (int)Amount6.G;R2 = (int)Amount6.R;// replacement colour from color wheel A2 = (int)Amount7;// replacement transparency from slider Color col = cp.ToColor();// from Boltbait's tutorial part4 - thanks BB! HsvColor hsv = HsvColor.FromColor(col);// source HSV color int H = hsv.Hue;// from 0 to 360 (Red,Orange,Yellow,Green,Turquoise,Blue,Magenta,Carmine) int S = hsv.Saturation;// from 0(grey) to 100 (full colour) int V = hsv.Value;// from 0 (black) to 100 (white) Color col1 = Amount2.ToColor(); HsvColor hsv1 = HsvColor.FromColor(col1);// detection HSV color int H1 = hsv1.Hue; int S1 = hsv1.Saturation; int V1 = hsv1.Value; double blend1 = 1;// have to assign a value double blend; double iblend; int Adiff = Math.Abs(A - A1);// declare here as used in many cases double Hdiff = Math.Abs(H - H1); double Sdiff = Math.Abs(S - S1); double Vdiff = Math.Abs(V - V1); switch (Amount1) { case 0:// by H,S & V if((Hdiff < t1d) &&(Sdiff < t1p) &&(Vdiff < t1p)) {if(!Amount3 ||(Amount3 && Adiff < t1b)) { blend1 = t2 * ((Hdiff / t1d) + (Sdiff / t1p) + (Vdiff / t1p)); } } break; case 1:// % change per colour int Bdiff = Math.Abs(B - B1);// declare here int Gdiff = Math.Abs(G - G1);// as only case int Rdiff = Math.Abs(R - R1);// to use them if(Bdiff < t1b && Gdiff < t1b && Rdiff < t1b) { if((Amount3 && Adiff < t1b)||!Amount3) { blend1 = t2 * (Bdiff + Gdiff + Rdiff) / t1b; } } break; case 2:// Euclidean // sqrt of (255 * 255 * 3 ) = 441.67 // 255 * 255 = 65025 euc = Math.Sqrt((B * + (G * G) + (R * R)) ; euc1 = Math.Sqrt((B1 * B1) + (G1 * G1) + (R1 * R1)); double eucdiff = Math.Abs(euc - euc1); if(eucdiff < t1e) { if((Amount3 && Adiff < t1b)||!Amount3) {blend1 = t2 * eucdiff / t1e;} } break; case 3:// B,G,R tone only (lum = approx luminance) lum = B + G + R;// source lum1 = B1 + G1 + R1;// primary color double lumdiff = Math.Abs(lum - lum1); if(lumdiff < t1l) {if((Amount3 && Adiff < t1b)||!Amount3) {blend1 = t2 * lumdiff / t1l;} } break; case 4:// (H,S,V tone)Value only if(Vdiff < t1p) { if(!Amount3 ||(Amount3 && Adiff < t1b)) { blend1 = t2 * Vdiff / t1p; } } break; case 5:// Saturation value only if(Sdiff < t1p) { if(!Amount3 ||(Amount3 && Adiff < t1b)) { blend1 = t2 * Sdiff / t1p; } } break; case 6:// Hue value only if(Hdiff < t1d) { if(!Amount3 ||(Amount3 && Adiff < t1b)) { blend1 = t2 * Hdiff/ t1d; } } break; case 7:// transparency only if(Adiff < t1b) { blend1 = t2 * Adiff/ t1b; } break; }// end of switch block if(blend1 > 1){blend1 = 1;}// to prevent colour reversal if more than 1 blend = 1 - blend1; // as in cases 1 & 7 iblend = 1 - blend; B = (int)((B2 * blend) + (B * iblend)); G = (int)((G2 * blend) + (G * iblend)); R = (int)((R2 * blend) + (R * iblend)); A = (int)((A2 * blend) + (A * iblend)); // keep unaltered detected - transparency srcA * blend if(Amount9){if(blend > 0){ B = src[x,y].B;G = src[x,y].G;R = src[x,y].R;A = (int)(src[x,y].A * blend);} if(blend == 0){A = 0;}} // Reassemble the color from B, G, and R cp = ColorBgra.FromBgra( Int32Util.ClampToByte(, Int32Util.ClampToByte(G), Int32Util.ClampToByte(R), Int32Util.ClampToByte(A)); dst[x,y] = cp; } } }
  13. I think 'Crimson' has a point here, I have experienced the same - when using large canvas sizes and high resoloutions (from a scan). I put it down to a 'lag' - because of the amount of info being processed ? 3 sentances begining with 'I' - must be time for a new paragraph. try using the eraser in short bursts - then you can undo - if you make a mistake (don't keep the right click held down). If still no luck - just select all / deselect - it will come back (don't do loads of erasing on one click - so less time wasted?). best of luck - only speaking from experience (definately not knowledge!) and hello Crimson !
  14. Hope you get those bills sorted soon. I've enjoyed your gallery here - hope to see a new collection when your luck changes. All the best
  15. Well done , - Glad you sorted out your thumb-nail code (I was interested in that thread because I always get it wrong!). Thanks for the work you've put into this - I, for one, was curious to see how you got those smooth gradients - Gaussian blur and alpha mask seem to be your tools of choice. A very methodical approach - I'd bet you're a good watercolour painter too . It may be worth adding a link to the Alphamask plugin (hope that's right) and rechecking for typo's - but still a very informative and understandable tutorial - Thank you! - Looking forward to seeing more of your 'paintings'.
  16. Hello Xhin, - great work on the latest one - sort of polarized Mandlebrot - with little faces in the star points (or is that my imagination!). I think I'll leave off writing a 'tut' till I know what I'm doing + too many rules for me
  17. @ dug, thanks for taking the time to say thanks - very impressed by your gallery too. - It's good to know that people are exploring the drop down lists and settings rather than accepting the default values. @ krys - hello & welcome - again thanks for saying thanks - very appreciated!
  18. Updated 'Noise choice', hopefully the vertical lines when selecting 'primary color' will be less of a problem.
  19. I've updated this one - hopefully it won't produce the unwanted vertical lines on the 'primary color' option now - if it does please let me know. I've shown the updated C# codelab code too, if you're curious - not the prettiest code. Sorry for any inconvenience and thanks to Delpart and Goonfella Just about to update the pack now too.
  20. Thanks Judith and Ahmed - hopefully I will be improving this one soon
  21. Thanks for this testing Goonfella and Delpart - very much appreciated :star:, I will work on this - since it seems the fastest machine seems to have the worst problems I will experiment with trying to slow it down (not too much!) . What results do you get by using 'primary to secondary' - with both colors set the same? Thanks again.
  22. Cheers mate, - I may have to update this one - goonfella and Delpart have reported some problems with the 'primary color' choice - I think I've sussed the problem and will update soon - I've put a 'beta' up to see if it's cured - thing is the problem is really slight on my system but not on Goonfellas judging by the screen shot. Loved the fire & brimstone in your gallery by the way Re toys - I get to play with them first!! - you should see the (terrible) ones I haven't published - I'm still a 'pleb' - well I went to a comprehensive anyway!
  23. Thanks for the feedback Delpart - I'm still at a loss? I can't reproduce it ? - I'll carry on trying but why this should occur just on primary choice stumps me at the moment Ah - just getting some when only small amounts of noise on primary (and on secondary if black selected). Many thanks both of you for reporting this - I will try and work out whats wrong and fix it or discontinue if I can't. In the meantime the reseed button should produce a useable distribution. Well I've added another call to random number and it seems better - could you test this version and report back please - as (particularly Goonfella) you seem to be getting more noticeable problems. Cheers noisechoice.zip
  24. Hello Goonfella, No it shouldn't look like that! - thing is it works fine on mine ? (I'm using Vista with the window transparency turned of though). - if you look at the code at the bottom of the noisechoice thread - it shows that the code for the primary color option is almost identical to that for the secondary color - which you say is working ok? Unless I can replicate the problem, it will difficult to work out what is wrong. from the screenshot you've shown it seems it is on a solid background layer - does anyone else get this problem? Very strange - if anyone has any ideas please post them. Sorry - at a loss there - but thanks for reporting back. I am also intrigued because in your screenshot the plugin title is cut short - this doesn't happen with mine? - I wonder if your settings for text size could be a clue?
  25. Updated the pack - added 'Noisechoice' and improved 'squirkle' edge smoothing - enjoy
×
×
  • Create New...