Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Perhaps Windows Movie Maker doesn't support PNG transparency. Can you try saving in the GIF format?
  2. I just updated the plugin to have 2 sliders now. More tinkering = more fun, right?
  3. If you read the Wiki article http://en.wikipedia.org/wiki/CMYK_color_model you will see that a perfect conversion is not possible. In fact, you might want to read the discussion page of that article... it is quite entertaining. I just wrote this effect because I wanted to play around with CMYK. BTW, you see in the case statements where I'm multiplying by 75, it should be 255 (according to the algorithm) but I found that to be too strong. I scaled it back to 75 and it looked much better. Of course, this also washes out the colors somewhat. Hmmmm... Maybe I should make that settable. EDIT: Done. Script has 2 sliders now. Oh, and Rick, I just followed the algorithm from the wiki article, I didn't optimize it for speed. I prefer readability during the prototype stage.
  4. Well, according to Wiki, "conversions here are best described as "nominal". They will produce an invertible conversion between RGB and a subset of CMYK; that is, one can take an RGB color and convert to certain CMYK colors, and from these CMYK colors obtain the corresponding, original RGB equivalents. However, conversion of CMYK colors in general to RGB colors is not invertible; that is, given a CMYK color which is converted to RGB, performing the former conversion may not give the original CMYK color. In addition, CMYK colors may print wildly differently from how the RGB colors display on a monitor. There is no single "good" conversion rule between RGB and CMYK." "Use of four-color printing generates a good final printed result with greater contrast. However, the color seen on a computer screen is often different from the color of the same object on a printout since CMYK and RGB have different gamuts. For example, pure blue (rgb 0, 0, 100%) is impossible to produce in CMYK. The nearest equivalent in CMYK is a dissimilar shade of blue-violet." But, since *you* might find this fun to play with... The Effect DLL Plugin: RGB2CMYK.dll (Updated 4/24/07) Just "save" that DLL file in your C:/Program Files/Paint.net/Effects directory and you should be all set. If you need help installing plugins, read this page: <!-- m -->http://boltbait.googlepages.com/install<!-- m --> Instructions for Use OK, taking this source picture (which I found on the Wiki page): http://boltbait.googlepages.com/CMYK_Before.jpg 1. Open your image. 2. Duplicate it 3 times. You should now have 4 copies. Name them "C", "M", "Y", and "K" respectively. 3. Create a new layer and fill it with white. 4. Move the white layer to the bottom. 5. Select the "C" layer and run the effect. Move the slider to the first position (Cyan) and press OK. 6. Select the "M" layer and run the effect. Move the slider to the second position (Magenta) and press OK. 7. Select the "Y" layer and run the effect. Move the slider to the third position (Yellow) and press OK. 8. Select the "K" layer and run the effect. Move the slider to the last position (blacK) and press OK. Here is the result: http://boltbait.googlepages.com/CMYK_After.jpg Here is the codelab script: #region UICode IntSliderControl Amount1 = 0; // [0,3] Cyan Magenta Yellow blacK IntSliderControl Amount2 = 75; // [0,255] CMY Intensity #endregion // http://en.wikipedia.org/wiki/CMYK_color_model void Render(Surface dst, Surface src, Rectangle rect) { float R=0,G=0,B=0; float C=0,M=0,Y=0,K=0; byte A=0; ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; // Convert to RGB (float) R = (float)CurrentPixel.R / 255; G = (float)CurrentPixel.G / 255; B = (float)CurrentPixel.B / 255; // Convert to MYC M = 1-G; Y = 1-B; C = 1-R; // Convert to CMYK if ((C==1) && (M==1) && (Y==1)) { C=0;M=0;Y=0;K=1; } else { K=C; if (K > M) K=M; if (K > Y) K=Y; C=(C-K)/(1-K); M=(M-K)/(1-K); Y=(Y-K)/(1-K); } switch(Amount1) { case 0: // Cyan A = (byte)(C*Amount2); R=0;G=255;B=255; break; case 1: // Magenta A = (byte)(M*Amount2); R=255;G=0;B=255; break; case 2: // Yellow A = (byte)(Y*Amount2); R=255;G=255;B=0; break; case 3: // Black A = (byte)(K*255); R=0;G=0;B=0; break; } dst[x,y] = ColorBgra.FromBgra( Int32Util.ClampToByte((int)B), Int32Util.ClampToByte((int)G), Int32Util.ClampToByte((int)R), Int32Util.ClampToByte(A)); } } } This is very rough, I know. Improvements welcome. As always, more information here: <!-- m -->http://boltbait.googlepages.com/cmyk<!-- m --> 😎
  5. My favorite feature is either CodeLab or access to the developer.
  6. Lots of information about how to do this is here: http://paintdotnet.12.forumer.com/viewtopic.php?t=4085
  7. You can adjust transparency of a selection by using this plugin: http://paintdotnet.12.forumer.com/viewtopic.php?t=3285
  8. Hmm... were they out of Becks? (You like German cars, you must like German beer.)
  9. You could try this plugin: http://boltbait.googlepages.com/AlphaToGray.dll It works like this: If you need help installing plugins, read this page: http://boltbait.googlepages.com/install Or, if you're looking to go the other direction (that is, import your alpha values from a file), try this plugin: http://paintdotnet.12.forumer.com/viewtopic.php?t=2178 Hope this helps! 8)
  10. What is "non-destructive editing"? I'm not familiar with the term.
  11. I just had to use MS Paint to finish a graphic for work. Can we get a Save As type for "Bitmap (BMP 256 color)"? I know you already have the routines for making good looking 256 color graphics in the GIF code... Should be a snap, yes?
  12. Use the magic wand tool to select the color you want to adjust, then use the following plugin: http://paintdotnet.12.forumer.com/viewtopic.php?t=3285
  13. This is because the render function gets called lots (hundreds) of times by paint.net. What happens is, paint.net breaks up your selection into smaller work units and calls the render function with only a small part of your selection. This spreads the work up among your various processors and causes it to finish faster. IOW: rect is the rectagnle of interest which is a subset of your entire selection. I hope this makes sense.
  14. Here is an older (August 12, 2005) interview that I found. It shows Rick and Tom... http://msdn.microsoft.com/msdntv/episod ... nifest.xml
  15. When I was done putting down all the snow, it looked like this: http://www.deviantart.com/deviation/49913073/
  16. What do you mean? It's a photograph! Someone was wondering why the snow in my yard always looks perfect... just thought I'd show the secret.
  17. But, if you think about it, that's EXACTLY what its doing. If you Gaussian blur a pixel that is sitting next to a totally transparent pixel, it becomes slightly transparent. Then, if you blur that transparent pixel, it takes on some of the color of the previous pixel and becomes slightly less transparent. Isn't that exactly what you describe? That would be what I'm describing, if the feathered object were a solid color and nothing more. I made this with the gradient tool, rect to polar, and alpha mask. This is a true feather. On the faded edges, not a single pixel has had an RGB value changed, only the alpha transparency. This is what the feather tool in Fireworks does, and I'm pretty sure that applies to other image editing programs. Kaiser Yoshi, check out the latest update. I think you'll like it. 8) Try the "shrink" method... Go get it here: http://paintdotnet.12.forumer.com/viewtopic.php?t=2498
  18. Maybe to you. But, seriously, I could care less about this feature. I'm not trying to be mean, I'm just trying to give you a little perspective.
  19. You are correct, Paint.NET does not have CMYK mode. Paint.NET uses ARGB for everything.
  20. Yeah, that took me a while. Now! Less talk, more pictures!!!
×
×
  • Create New...