equal
deleted
inserted
replaced
54 @return A pointer to a newly constructed CFbsRasterizer object if successful, |
54 @return A pointer to a newly constructed CFbsRasterizer object if successful, |
55 or NULL if no memory is available. |
55 or NULL if no memory is available. |
56 */ |
56 */ |
57 EXPORT_C CFbsRasterizer* CSvgtFbsRasterizer::New() |
57 EXPORT_C CFbsRasterizer* CSvgtFbsRasterizer::New() |
58 { |
58 { |
|
59 if(!User::TrapHandler()) |
|
60 { |
|
61 return NULL; |
|
62 } |
59 CSvgtFbsRasterizer* self = new CSvgtFbsRasterizer; |
63 CSvgtFbsRasterizer* self = new CSvgtFbsRasterizer; |
60 if ( self ) |
64 if ( self ) |
61 { |
65 { |
62 self->InitializeRasterizer(); |
66 self->InitializeRasterizer(); |
63 } |
67 } |
589 TInt C = 0; |
593 TInt C = 0; |
590 TInt hNTN = Ha - 2.0 * 0.12 * Ha; |
594 TInt hNTN = Ha - 2.0 * 0.12 * Ha; |
591 TReal R = 1.0; |
595 TReal R = 1.0; |
592 TInt HaN = Ha; |
596 TInt HaN = Ha; |
593 |
597 |
594 const TInt lastColumn = aSize.iWidth - 1; |
598 const TInt lastColumn = aSize.iHeight - 1; |
595 for ( TInt curRow = 0; curRow < validMargin; curRow++ ) |
599 for ( TInt curRow = 0; curRow < validMargin; curRow++ ) |
596 { |
600 { |
597 const TInt y = (aSize.iHeight - 1) - curRow; // h - 1 is the last line |
601 const TInt y = (aSize.iHeight - 1) - curRow; // h - 1 is the last line |
598 |
602 |
599 vgGetImageSubData(aVgImage, ptr, sizeof(TUint)*aSize.iWidth, VG_sRGBA_8888_PRE, 0, y, aSize.iWidth, 1); |
603 vgGetImageSubData(aVgImage, ptr, sizeof(TUint)*aSize.iWidth, VG_sRGBA_8888_PRE, 0, y, aSize.iWidth, 1); |