Lines Matching defs:emf
57 Emf emf;
58 EXPECT_TRUE(emf.Init());
59 EXPECT_TRUE(emf.context() != NULL);
60 // An empty EMF is invalid, so we put at least a rectangle in it.
61 ::Rectangle(emf.context(), 10, 10, 190, 190);
62 EXPECT_TRUE(emf.FinishDocument());
63 size = emf.GetDataSize();
65 EXPECT_TRUE(emf.GetDataAsVector(&data));
70 Emf emf;
71 EXPECT_TRUE(emf.InitFromData(&data.front(), size));
75 EXPECT_TRUE(emf.Playback(hdc, &output_rect));
98 .Append(FILE_PATH_LITERAL("test4.emf"));
99 // Load any EMF with an image.
100 Emf emf;
104 EXPECT_TRUE(emf.InitFromData(&emf_data[0], emf_data.size()));
113 RECT page_bounds = emf.GetPageBounds(1).ToRECT();
114 Emf::Enumerator emf_enum(emf, context->context(), &page_bounds);
115 for (Emf::Enumerator::const_iterator itr = emf_enum.begin();
139 Emf emf;
140 EXPECT_TRUE(emf.Init());
141 EXPECT_TRUE(emf.context() != NULL);
144 EXPECT_TRUE(emf.StartPage(gfx::Size(), gfx::Rect(), 1));
145 ::Rectangle(emf.context(), 10, 10, 190, 190);
146 EXPECT_TRUE(emf.FinishPage());
149 EXPECT_EQ(3U, emf.GetPageCount());
150 EXPECT_TRUE(emf.FinishDocument());
151 size = emf.GetDataSize();
152 EXPECT_TRUE(emf.GetDataAsVector(&data));
161 Emf emf;
162 EXPECT_TRUE(emf.InitFromData(&data.front(), size));
163 EXPECT_TRUE(emf.SafePlayback(dc.Get()));
184 Emf emf;
185 EXPECT_TRUE(emf.InitToFile(metafile_path));
186 EXPECT_TRUE(emf.context() != NULL);
187 // An empty EMF is invalid, so we put at least a rectangle in it.
188 ::Rectangle(emf.context(), 10, 10, 190, 190);
189 EXPECT_TRUE(emf.FinishDocument());
190 size = emf.GetDataSize();
192 EXPECT_TRUE(emf.GetDataAsVector(&data));
202 Emf emf;
203 EXPECT_TRUE(emf.InitFromFile(metafile_path));
205 EXPECT_TRUE(emf.Playback(hdc, &output_rect));
210 Emf emf;
211 EXPECT_TRUE(emf.Init());
212 EXPECT_TRUE(emf.context() != NULL);
216 FillRect(emf.context(), &rect, brush);
218 EXPECT_TRUE(emf.FinishDocument());
220 scoped_ptr<Emf> raster(emf.RasterizeMetafile(1));
222 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1));
224 raster = emf.RasterizeMetafile(20);
225 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1));
227 raster = emf.RasterizeMetafile(16 * 1024 * 1024);
231 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1));