|
|
| ColorHSL (PixelPacket *rep_, PixelType pixelType_) |
| |
| | Color (PixelPacket *rep_, PixelType pixelType_) |
| |
| void | pixel (PixelPacket *rep_, PixelType pixelType_) |
| |
Definition at line 218 of file Color.h.
◆ ColorHSL() [1/3]
| Magick::ColorHSL::ColorHSL |
( |
void | | ) |
|
◆ ColorHSL() [2/3]
| Magick::ColorHSL::ColorHSL |
( |
const Color & | color_ | ) |
|
Definition at line 341 of file Color.cpp.
342 : Color( color_ )
343{
344}
◆ ColorHSL() [3/3]
| Magick::ColorHSL::ColorHSL |
( |
double | hue_, |
|
|
double | saturation_, |
|
|
double | luminosity_ ) |
Definition at line 346 of file Color.cpp.
347 : Color()
348{
349 Quantum
350 blue,
351 green,
352 red;
353
354 ConvertHSLToRGB(hue_,saturation_,luminosity_,&red,&green,&blue);
355
356 redQuantum(red);
357 greenQuantum(green);
358 blueQuantum(blue);
359 alphaQuantum(OpaqueOpacity);
360}
◆ ~ColorHSL()
| Magick::ColorHSL::~ColorHSL |
( |
| ) |
|
◆ hue() [1/2]
| void Magick::ColorHSL::hue |
( |
double | hue_ | ) |
|
Definition at line 372 of file Color.cpp.
373{
374 double
375 hue,
376 luminosity,
377 saturation;
378
379 Quantum
380 blue,
381 green,
382 red;
383
384 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
385 &luminosity);
386
387 hue=hue_;
388
389 ConvertHSLToRGB(hue,saturation,luminosity,&red,&green,&blue);
390
391 redQuantum(red);
392 greenQuantum(green);
393 blueQuantum(blue);
394}
◆ hue() [2/2]
| double Magick::ColorHSL::hue |
( |
void | | ) |
const |
Definition at line 396 of file Color.cpp.
397{
398 double
399 hue,
400 luminosity,
401 saturation;
402
403 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
404 &luminosity);
405
406 return(hue);
407}
◆ luminosity() [1/2]
| void Magick::ColorHSL::luminosity |
( |
double | luminosity_ | ) |
|
Definition at line 409 of file Color.cpp.
410{
411 double
412 hue,
413 luminosity,
414 saturation;
415
416 Quantum
417 blue,
418 green,
419 red;
420
421 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
422 &luminosity);
423
424 luminosity=luminosity_;
425
426 ConvertHSLToRGB(hue,saturation,luminosity,&red,&green,&blue);
427
428 redQuantum(red);
429 greenQuantum(green);
430 blueQuantum(blue);
431}
◆ luminosity() [2/2]
| double Magick::ColorHSL::luminosity |
( |
void | | ) |
const |
Definition at line 433 of file Color.cpp.
434{
435 double
436 hue,
437 saturation,
438 luminosity;
439
440 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
441 &luminosity);
442
443 return(luminosity);
444}
◆ operator=()
Definition at line 366 of file Color.cpp.
367{
368 *static_cast<Magick::Color*>(this)=color_;
369 return (*this);
370}
◆ saturation() [1/2]
| void Magick::ColorHSL::saturation |
( |
double | saturation_ | ) |
|
Definition at line 446 of file Color.cpp.
447{
448 double
449 hue,
450 luminosity,
451 saturation;
452
453 Quantum
454 blue,
455 green,
456 red;
457
458 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
459 &luminosity);
460
461 saturation=saturation_;
462
463 ConvertHSLToRGB(hue,saturation,luminosity,&red,&green,&blue);
464
465 redQuantum(red);
466 greenQuantum(green);
467 blueQuantum(blue);
468}
◆ saturation() [2/2]
| double Magick::ColorHSL::saturation |
( |
void | | ) |
const |
Definition at line 470 of file Color.cpp.
471{
472 double
473 hue,
474 luminosity,
475 saturation;
476
477 ConvertRGBToHSL(redQuantum(),greenQuantum(),blueQuantum(),&hue,&saturation,
478 &luminosity);
479
480 return(saturation);
481}
The documentation for this class was generated from the following files:
- ImageMagick-6/Magick++/lib/Magick++/Color.h
- ImageMagick-6/Magick++/lib/Color.cpp