---------------------------------------------------------------------
| 41 | |
| 42 | //--------------------------------------------------------------------- |
| 43 | line_profile_aa::value_type* line_profile_aa::profile(double w) |
| 44 | { |
| 45 | m_subpixel_width = uround(w * subpixel_scale); |
| 46 | unsigned size = m_subpixel_width + subpixel_scale * 6; |
| 47 | if(size > m_profile.size()) |
| 48 | { |
| 49 | m_profile.resize(size); |
| 50 | } |
| 51 | return &m_profile[0]; |
| 52 | } |
| 53 | |
| 54 | |
| 55 | //--------------------------------------------------------------------- |